mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-24 16:16:10 +08:00
cmake : use BUILD_SHARED_LIBS
This commit is contained in:
@@ -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}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user