We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a65c410 commit 1ce9470Copy full SHA for 1ce9470
CMakeLists.txt
@@ -69,14 +69,15 @@ file(GLOB SD_LIB_SOURCES
69
# we can get only one share lib
70
if(SD_BUILD_SHARED_LIBS)
71
message("Build shared library")
72
- set(BUILD_SHARED_LIBS OFF)
73
message(${SD_LIB_SOURCES})
+ set(BUILD_SHARED_LIBS OFF)
74
add_library(${SD_LIB} SHARED ${SD_LIB_SOURCES})
75
add_definitions(-DSD_BUILD_SHARED_LIB)
76
target_compile_definitions(${SD_LIB} PRIVATE -DSD_BUILD_DLL)
77
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
78
else()
79
message("Build static library")
80
81
add_library(${SD_LIB} STATIC ${SD_LIB_SOURCES})
82
endif()
83
0 commit comments