Skip to content

Commit f92305a

Browse files
committed
Test some CMake options.
1 parent e80ff3d commit f92305a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ if (NOT GTEST_FOUND)
309309
target_compile_definitions(${target} INTERFACE GTEST_LINKED_AS_SHARED_LIBRARY=1)
310310
endforeach ()
311311
target_compile_definitions(${PLSSVM_BASE_TEST_LIBRARY_NAME} PUBLIC GTEST_HAS_MAIN=0)
312+
set_target_properties(GTest::gtest_main PROPERTIES EXCLUDE_FROM_ALL ON EXCLUDE_FROM_DEFAULT_BUILD ON)
312313
endif ()
313314

314315
list(POP_BACK CMAKE_MESSAGE_INDENT)

0 commit comments

Comments
 (0)