CMakeLists.txt: visibility=hidden for add targets
This commit is contained in:
parent
d2422735e6
commit
d884cd45d9
@ -42,7 +42,8 @@ if(HAIKU)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# add -fPIC globally so that it's linked well
|
# add -fPIC globally so that it's linked well
|
||||||
add_compile_options($<$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>:-fPIC>)
|
add_compile_options($<$<BOOL:${TWN_FEATURE_DYNLIB_GAME}>:-fPIC>
|
||||||
|
-fvisibility=hidden)
|
||||||
|
|
||||||
set(PHYSFS_BUILD_SHARED FALSE CACHE INTERNAL "")
|
set(PHYSFS_BUILD_SHARED FALSE CACHE INTERNAL "")
|
||||||
set(PHYSFS_DISABLE_INSTALL TRUE CACHE INTERNAL "")
|
set(PHYSFS_DISABLE_INSTALL TRUE CACHE INTERNAL "")
|
||||||
@ -310,7 +311,6 @@ link_deps(twn_third_parties)
|
|||||||
give_options(${TWN_TARGET})
|
give_options(${TWN_TARGET})
|
||||||
include_deps(${TWN_TARGET})
|
include_deps(${TWN_TARGET})
|
||||||
link_deps(${TWN_TARGET})
|
link_deps(${TWN_TARGET})
|
||||||
target_compile_options(${TWN_TARGET} PRIVATE -fvisibility=hidden)
|
|
||||||
target_link_libraries(${TWN_TARGET} PUBLIC twn_third_parties)
|
target_link_libraries(${TWN_TARGET} PUBLIC twn_third_parties)
|
||||||
target_include_directories(${TWN_TARGET} PRIVATE ${TWN_ROOT_DIR}/src)
|
target_include_directories(${TWN_TARGET} PRIVATE ${TWN_ROOT_DIR}/src)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user