cmake : use BUILD_SHARED_LIBS

This commit is contained in:
Georgi Gerganov
2021-01-18 20:44:27 +02:00
parent f10b91feca
commit 201fdf0cbe
4 changed files with 11 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
set(TARGET ggwave)
add_library(${TARGET} ${GGWAVE_LIBRARY_TYPE}
add_library(${TARGET}
ggwave.cpp
)
@@ -11,7 +11,7 @@ target_include_directories(${TARGET} PUBLIC
../include
)
if (GGWAVE_LIBRARY_TYPE STREQUAL "SHARED")
if (BUILD_SHARED_LIBS)
target_link_libraries(${TARGET} PUBLIC
${CMAKE_DL_LIBS}
)