mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-21 15:04:35 +00:00
Enable PIC dependent on BUILD_SHARED_LIBS
While vk-bootstrap is a static library, it needs to have PIC enabled if BUILD_SHARED_LIBS is on so it can work with shared libraries.
This commit is contained in:
parent
a5950c0700
commit
99e51d782e
@ -98,6 +98,9 @@ target_link_libraries(vk-bootstrap
|
||||
${CMAKE_DL_LIBS})
|
||||
target_compile_features(vk-bootstrap PUBLIC cxx_std_17)
|
||||
|
||||
option(VK_BOOTSTRAP_POSITION_INDEPENDENT_CODE "Default value is the value of BUILD_SHARED_LIBS" ${BUILD_SHARED_LIBS})
|
||||
set_target_properties(vk-bootstrap PROPERTIES POSITION_INDEPENDENT_CODE ${VK_BOOTSTRAP_POSITION_INDEPENDENT_CODE})
|
||||
|
||||
if(VK_BOOTSTRAP_TEST)
|
||||
enable_testing()
|
||||
add_subdirectory(ext)
|
||||
|
Loading…
Reference in New Issue
Block a user