CMake: Allow to build dynamic lib
This allows taking cmake BUILD_SHARED_LIBS option to decide whether to build a shared or static lib This does not change the default (static)
This commit is contained in:
parent
e3379ed8c9
commit
6a3cc9a804
@ -226,7 +226,7 @@ endfunction(cppdap_set_target_options)
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
# dap
|
# dap
|
||||||
add_library(cppdap STATIC ${CPPDAP_LIST})
|
add_library(cppdap ${CPPDAP_LIST})
|
||||||
set_target_properties(cppdap PROPERTIES POSITION_INDEPENDENT_CODE 1)
|
set_target_properties(cppdap PROPERTIES POSITION_INDEPENDENT_CODE 1)
|
||||||
|
|
||||||
cppdap_set_target_options(cppdap)
|
cppdap_set_target_options(cppdap)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user