mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 05:47:51 +08:00
b68967891e
Added port of the C++ message dispatching actor model framework. https://sourceforge.net/projects/sobjectizer/
37 lines
990 B
Diff
37 lines
990 B
Diff
diff --git a/so_5/CMakeLists.txt b/so_5/CMakeLists.txt
|
|
index bd6f1d7..0e30831 100644
|
|
--- a/so_5/CMakeLists.txt
|
|
+++ b/so_5/CMakeLists.txt
|
|
@@ -71,12 +71,17 @@ set(SO_5_SRC exception.cpp
|
|
disp/prio_dedicated_threads/one_per_prio/pub.cpp
|
|
)
|
|
|
|
-add_library(${SO_5_TARGET} SHARED ${SO_5_SRC})
|
|
+if (SO_BUILD_STATIC)
|
|
+ message(STATUS "Building static.")
|
|
+ add_library(${SO_5_TARGET} STATIC ${SO_5_SRC})
|
|
+ target_compile_definitions(${SO_5_TARGET}
|
|
+ PUBLIC -DSO_5_STATIC_LIB
|
|
+ )
|
|
+else()
|
|
+ message(STATUS "Building dynamic.")
|
|
+ add_library(${SO_5_TARGET} SHARED ${SO_5_SRC})
|
|
+endif()
|
|
|
|
-add_library(${SO_5_S_TARGET} STATIC ${SO_5_SRC})
|
|
-target_compile_definitions(${SO_5_S_TARGET}
|
|
- PUBLIC -DSO_5_STATIC_LIB
|
|
-)
|
|
|
|
set(SO_5_EXT_LIBS )
|
|
if( ANDROID )
|
|
@@ -90,7 +95,7 @@ foreach(__extLibrary ${SO_5_EXT_LIBS})
|
|
endforeach()
|
|
|
|
install(
|
|
- TARGETS ${SO_5_TARGET} ${SO_5_S_TARGET}
|
|
+ TARGETS ${SO_5_TARGET}
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
RUNTIME DESTINATION bin
|