1 parent
9a54f15e7e
commit
f94366104e
7 files changed
+100
-13
No files matched your search
+9
-7
@@ -23,13 +23,15 @@ function(void_add_module MODULE_NAME)
|
||||
add_library(${TGT} INTERFACE)
|
||||
target_compile_features(${TGT} INTERFACE cxx_std_26)
|
||||
else()
|
||||
set(LIB_TYPE "SHARED")
|
||||
set(SCOPE "PUBLIC")
|
||||
if (MODULE_NAME STREQUAL "Testing")
|
||||
add_library(${TGT} STATIC)
|
||||
else()
|
||||
add_library(${TGT} SHARED)
|
||||
endif()
|
||||
set(SCOPE "PUBLIC")
|
||||
if (MODULE_NAME STREQUAL "Testing")
|
||||
add_library(${TGT} STATIC)
|
||||
else()
|
||||
# Honour the standard BUILD_SHARED_LIBS policy. Consumers that ship a
|
||||
# single validated executable must be able to embed Void modules,
|
||||
# while Void's standalone default remains shared.
|
||||
add_library(${TGT})
|
||||
endif()
|
||||
target_sources(${TGT} PRIVATE ${SRC})
|
||||
target_compile_features(${TGT} PUBLIC cxx_std_26)
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user