From 1e95421889b3f14224cd02984bf713375092f06d Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 17 Oct 2016 21:42:58 +0200 Subject: [PATCH] [#392] Don't install tests 'make install' should install the GSL library (ie. the headers), not the tests. It still installs the UnitTest++ headers, but that will be more complex to fix, as GSL just imports UnitTest++ as a git submodule, and the install command propagates down to UnitTest++'s CMakeLists.txt. --- tests/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e480474..44db32d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -35,9 +35,6 @@ endif() function(add_gsl_test name) add_executable(${name} ${name}.cpp ../gsl/gsl ../gsl/gsl_assert ../gsl/gsl_util ../gsl/multi_span ../gsl/span ../gsl/string_span) target_link_libraries(${name} UnitTest++) - install(TARGETS ${name} - RUNTIME DESTINATION bin - ) add_test( ${name} ${name} @@ -54,4 +51,4 @@ add_gsl_test(notnull_tests) add_gsl_test(assertion_tests) add_gsl_test(utils_tests) add_gsl_test(owner_tests) -add_gsl_test(byte_tests) \ No newline at end of file +add_gsl_test(byte_tests)