Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
cfe207a7
Commit
cfe207a7
authored
11 months ago
by
Joscha Schmiedt
Browse files
Options
Downloads
Patches
Plain Diff
FIX Linker error on windows concerning stdc++fs
Partially addresses issue
#34
parent
24a0ee68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!61
Release 0.3.0
,
!48
Fix compilation errors on Windows
Pipeline
#50952
failed
11 months ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#50953
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+26
-9
26 additions, 9 deletions
CMakeLists.txt
with
26 additions
and
9 deletions
CMakeLists.txt
+
26
−
9
View file @
cfe207a7
...
...
@@ -177,10 +177,18 @@ else()
SHARED
${
libcaosdb_INCL
}
${
libcaosdb_SRC
}
${
GRPC_GENERATED
}
)
set
(
LIBCAOSDB caosdb
)
endif
()
target_link_libraries
(
caosdb
${
CONAN_LIBS
}
stdc++fs
)
IF
(
WIN32
)
target_link_libraries
(
caosdb
${
CONAN_LIBS
}
)
ELSE
()
target_link_libraries
(
caosdb
${
CONAN_LIBS
}
stdc++fs
)
ENDIF
()
target_include_directories
(
caosdb PUBLIC
$<BUILD_INTERFACE:
${
libcaosdb_SOURCE_DIR
}
/include>
$<BUILD_INTERFACE:
${
libcaosdb_BINARY_DIR
}
/include>
...
...
@@ -192,11 +200,20 @@ target_include_directories(caosdb SYSTEM PUBLIC
)
add_library
(
ccaosdb SHARED src/ccaosdb.cpp
)
target_link_libraries
(
ccaosdb
${
CONAN_LIBS
}
${
LIBCAOSDB
}
stdc++fs
)
IF
(
WIN32
)
target_link_libraries
(
ccaosdb
${
CONAN_LIBS
}
${
LIBCAOSDB
}
)
ELSE
()
target_link_libraries
(
ccaosdb
${
CONAN_LIBS
}
${
LIBCAOSDB
}
stdc++fs
)
ENDIF
()
target_include_directories
(
ccaosdb PUBLIC
$<BUILD_INTERFACE:
${
libcaosdb_SOURCE_DIR
}
/include>
$<BUILD_INTERFACE:
${
libcaosdb_BINARY_DIR
}
/include>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment