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:
Julien Schueller 2023-07-13 19:36:52 +02:00 committed by Ben Clayton
parent e3379ed8c9
commit 6a3cc9a804

View File

@ -226,7 +226,7 @@ endfunction(cppdap_set_target_options)
###########################################################
# dap
add_library(cppdap STATIC ${CPPDAP_LIST})
add_library(cppdap ${CPPDAP_LIST})
set_target_properties(cppdap PROPERTIES POSITION_INDEPENDENT_CODE 1)
cppdap_set_target_options(cppdap)