shared libraries should be linked to their dependencies

dev
Ximin Luo 6 years ago
parent 731e67cbda
commit e4b29878ce
  1. 1
      CMakeLists.txt

@ -91,6 +91,7 @@ include_directories(
add_library(mcl STATIC ${SRCS})
add_library(mcl_dy SHARED ${SRCS})
target_link_libraries(mcl_dy ${LIBS})
set_target_properties(mcl_dy PROPERTIES OUTPUT_NAME mcl)
if(NOT USE_OLD_SHARED_NAME)
set_target_properties(mcl_dy PROPERTIES OUTPUT_NAME mcl)

Loading…
Cancel
Save