Skip to content

Commit bb8ea74

Browse files
tests should not link against plugins to load
1 parent 1f027ab commit bb8ea74

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ target_include_directories(${PROJECT_NAME}_TestPlugins1
77
PUBLIC "../include" ${console_bridge_INCLUDE_DIRS} ${Poco_INCLUDE_DIRS})
88
target_link_libraries(${PROJECT_NAME}_TestPlugins1 ${PROJECT_NAME})
99
class_loader_hide_library_symbols(${PROJECT_NAME}_TestPlugins1)
10-
if(WIN32)
11-
target_compile_definitions(${PROJECT_NAME}_TestPlugins1 PRIVATE "CLASS_LOADER_BUILDING_DLL")
12-
endif()
1310
add_library(${PROJECT_NAME}_TestPlugins2 EXCLUDE_FROM_ALL SHARED plugins2.cpp)
1411
target_include_directories(${PROJECT_NAME}_TestPlugins2
1512
PUBLIC "../include" ${console_bridge_INCLUDE_DIRS} ${Poco_INCLUDE_DIRS})
1613
target_link_libraries(${PROJECT_NAME}_TestPlugins2 ${PROJECT_NAME})
17-
if(WIN32)
18-
target_compile_definitions(${PROJECT_NAME}_TestPlugins2 PRIVATE "CLASS_LOADER_BUILDING_DLL")
19-
endif()
2014
class_loader_hide_library_symbols(${PROJECT_NAME}_TestPlugins2)
2115

2216
if(WIN32)
@@ -34,8 +28,6 @@ if(TARGET ${PROJECT_NAME}_utest)
3428
PUBLIC "../include" ${console_bridge_INCLUDE_DIRS} ${Poco_INCLUDE_DIRS})
3529
target_link_libraries(${PROJECT_NAME}_utest
3630
${PROJECT_NAME}
37-
${PROJECT_NAME}_TestPlugins1
38-
${PROJECT_NAME}_TestPlugins2
3931
${Poco_LIBRARIES}
4032
)
4133
if(NOT WIN32)
@@ -54,8 +46,6 @@ if(TARGET ${PROJECT_NAME}_unique_ptr_test)
5446
PUBLIC "../include" ${Poco_INCLUDE_DIRS})
5547
target_link_libraries(${PROJECT_NAME}_unique_ptr_test
5648
${PROJECT_NAME}
57-
${PROJECT_NAME}_TestPlugins1
58-
${PROJECT_NAME}_TestPlugins2
5949
${Poco_LIBRARIES}
6050
)
6151
if(NOT WIN32)

0 commit comments

Comments
 (0)