File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -94,16 +94,17 @@ function(add_casablanca_test NAME SOURCES_VAR)
94
94
message ("-- Added test library ${NAME} " )
95
95
if (NOT TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT" )
96
96
target_link_libraries (${NAME}
97
- ${LIB} unittestpp
98
97
${LIB} httptest_utilities
99
98
${LIB} common_utilities
99
+ ${LIB} unittestpp
100
100
${Casablanca_LIBRARIES}
101
101
)
102
-
103
- add_test (NAME ${NAME}
104
- WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
105
- COMMAND test_runner lib${NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
106
- )
102
+ if (BUILD_SHARED_LIBS )
103
+ add_test (NAME ${NAME}
104
+ WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
105
+ COMMAND test_runner lib${NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
106
+ )
107
+ endif ()
107
108
endif ()
108
109
endfunction ()
109
110
You can’t perform that action at this time.
0 commit comments