Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
76dc6715
Commit
76dc6715
authored
Feb 22, 2024
by
Humberto Dias
Committed by
Jesse Beder
Feb 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option YAML_ENABLE_PIC=ON
parent
5c1bbbd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
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