Skip to content

Commit 31d4297

Browse files
committed
cpp.cmake cleanup
1 parent e3ae730 commit 31d4297

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

cmake/cpp.cmake

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,11 @@ function(add_cxx_test)
102102
INSTALL_RPATH "$ORIGIN/${libdir_relative_path}:$ORIGIN")
103103
endif()
104104

105-
if(BUILD_TESTING)
106-
add_test(
107-
NAME cxx_${TEST_NAME}
108-
COMMAND ${TEST_NAME}
109-
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
110-
)
111-
endif()
105+
add_test(
106+
NAME cxx_${TEST_NAME}
107+
COMMAND ${TEST_NAME}
108+
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
109+
)
112110
message(STATUS "Configuring test ${TEST_NAME} ...DONE")
113111
endfunction()
114112

0 commit comments

Comments
 (0)