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
76dc6715
Commit
76dc6715
authored
Feb 22, 2024
by
Humberto Dias
Committed by
Jesse Beder
Feb 22, 2024
Browse files
Add option YAML_ENABLE_PIC=ON
parent
5c1bbbd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
CMakeLists.txt
CMakeLists.txt
+2
-3
No files found.
CMakeLists.txt
View file @
76dc6715
...
@@ -28,6 +28,7 @@ option(YAML_CPP_INSTALL "Enable generation of yaml-cpp install targets" ${YAML_C
...
@@ -28,6 +28,7 @@ option(YAML_CPP_INSTALL "Enable generation of yaml-cpp install targets" ${YAML_C
option
(
YAML_CPP_FORMAT_SOURCE
"Format source"
${
YAML_CPP_MAIN_PROJECT
}
)
option
(
YAML_CPP_FORMAT_SOURCE
"Format source"
${
YAML_CPP_MAIN_PROJECT
}
)
option
(
YAML_CPP_DISABLE_UNINSTALL
"Disable uninstallation of yaml-cpp"
OFF
)
option
(
YAML_CPP_DISABLE_UNINSTALL
"Disable uninstallation of yaml-cpp"
OFF
)
option
(
YAML_USE_SYSTEM_GTEST
"Use system googletest if found"
OFF
)
option
(
YAML_USE_SYSTEM_GTEST
"Use system googletest if found"
OFF
)
option
(
YAML_ENABLE_PIC
"Use Position-Independent Code "
ON
)
cmake_dependent_option
(
YAML_CPP_BUILD_TESTS
cmake_dependent_option
(
YAML_CPP_BUILD_TESTS
"Enable yaml-cpp tests"
OFF
"Enable yaml-cpp tests"
OFF
...
@@ -91,9 +92,7 @@ set_property(TARGET yaml-cpp
...
@@ -91,9 +92,7 @@ set_property(TARGET yaml-cpp
CXX_STANDARD_REQUIRED ON
)
CXX_STANDARD_REQUIRED ON
)
if
(
NOT YAML_BUILD_SHARED_LIBS
)
if
(
NOT YAML_BUILD_SHARED_LIBS
)
if
(
NOT PSP AND NOT PS3
)
set_property
(
TARGET yaml-cpp PROPERTY POSITION_INDEPENDENT_CODE
${
YAML_ENABLE_PIC
}
)
set_property
(
TARGET yaml-cpp PROPERTY POSITION_INDEPENDENT_CODE ON
)
endif
()
endif
()
endif
()
target_include_directories
(
yaml-cpp
target_include_directories
(
yaml-cpp
...
...
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