Link atomic with only the active libraries
This commit is contained in:
parent
39d20bbf96
commit
d91238af4c
1 changed files with 8 additions and 7 deletions
|
|
@ -30,9 +30,9 @@ sfizz_link_libsndfile(sfizz_static)
|
||||||
|
|
||||||
add_library (sfizz::parser ALIAS sfizz_parser)
|
add_library (sfizz::parser ALIAS sfizz_parser)
|
||||||
add_library (sfizz::sfizz ALIAS sfizz_static)
|
add_library (sfizz::sfizz ALIAS sfizz_static)
|
||||||
|
if (UNIX AND NOT APPLE)
|
||||||
# install(TARGETS sfizz_parser DESTINATION . EXCLUDE_FROM_ALL)
|
target_link_libraries (sfizz_static PRIVATE atomic)
|
||||||
# install(TARGETS sfizz DESTINATION . EXCLUDE_FROM_ALL)
|
endif()
|
||||||
|
|
||||||
# Shared library and installation target
|
# Shared library and installation target
|
||||||
if (SFIZZ_SHARED)
|
if (SFIZZ_SHARED)
|
||||||
|
|
@ -55,8 +55,9 @@ if (SFIZZ_SHARED)
|
||||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
install (FILES ${CMAKE_BINARY_DIR}/src/sfizz.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
install (FILES ${CMAKE_BINARY_DIR}/src/sfizz.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (UNIX AND NOT APPLE)
|
||||||
|
target_link_libraries (sfizz_shared PRIVATE atomic)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if (UNIX AND NOT APPLE)
|
|
||||||
target_link_libraries (sfizz_static PRIVATE atomic)
|
|
||||||
target_link_libraries (sfizz_shared PRIVATE atomic)
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue