Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
cdf89fa3
"...composable_kernel.git" did not exist on "d443a7a675b1c84a88e15e9fd6cce8d30f76f0d1"
Unverified
Commit
cdf89fa3
authored
Jan 27, 2022
by
Christian Rauch
Committed by
GitHub
Jan 27, 2022
Browse files
set POSITION_INDEPENDENT_CODE if BUILD_SHARED_LIBS=OFF (#1076)
parent
f8e1a7be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
CMakeLists.txt
CMakeLists.txt
+4
-0
No files found.
CMakeLists.txt
View file @
cdf89fa3
...
@@ -80,6 +80,10 @@ set_property(TARGET yaml-cpp
...
@@ -80,6 +80,10 @@ set_property(TARGET yaml-cpp
PROPERTY
PROPERTY
CXX_STANDARD_REQUIRED ON
)
CXX_STANDARD_REQUIRED ON
)
if
(
NOT YAML_BUILD_SHARED_LIBS
)
set_property
(
TARGET yaml-cpp PROPERTY POSITION_INDEPENDENT_CODE ON
)
endif
()
target_include_directories
(
yaml-cpp
target_include_directories
(
yaml-cpp
PUBLIC
PUBLIC
$<BUILD_INTERFACE:
${
PROJECT_SOURCE_DIR
}
/include>
$<BUILD_INTERFACE:
${
PROJECT_SOURCE_DIR
}
/include>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment