Explorar o código

test: use MODULE rather than SHARED for plugins

Michele Caini %!s(int64=6) %!d(string=hai) anos
pai
achega
d28b6fbf1e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/CMakeLists.txt

+ 1 - 1
test/CMakeLists.txt

@@ -56,7 +56,7 @@ macro(SETUP_LIB_TEST TEST_NAME)
 endmacro()
 
 macro(SETUP_PLUGIN_TEST TEST_NAME)
-    add_library(_${TEST_NAME}_plugin SHARED plugin/${TEST_NAME}/plugin.cpp)
+    add_library(_${TEST_NAME}_plugin MODULE plugin/${TEST_NAME}/plugin.cpp)
     SETUP_TARGET(_${TEST_NAME}_plugin)
     SETUP_BASIC_TEST(lib_${TEST_NAME}_plugin plugin/${TEST_NAME}/main.cpp)
     target_link_libraries(lib_${TEST_NAME}_plugin PRIVATE ${CMAKE_DL_LIBS})