[polly] r279740 - Do not build unittests by default.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 25 07:33:44 PDT 2016


Author: meinersbur
Date: Thu Aug 25 09:33:44 2016
New Revision: 279740

URL: http://llvm.org/viewvc/llvm-project?rev=279740&view=rev
Log:
Do not build unittests by default.

Only build them for check-polly and check-polly-unittests in out-of-tree builds.

In LLVM, this behaviour is controlled with LLVM_BUILD_TESTS. Polly out-of-tree
does not have such a flag.

Modified:
    polly/trunk/unittests/CMakeLists.txt

Modified: polly/trunk/unittests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/unittests/CMakeLists.txt?rev=279740&r1=279739&r2=279740&view=diff
==============================================================================
--- polly/trunk/unittests/CMakeLists.txt (original)
+++ polly/trunk/unittests/CMakeLists.txt Thu Aug 25 09:33:44 2016
@@ -8,7 +8,7 @@ function(add_polly_unittest test_name)
   if(COMMAND add_unittest)
     add_unittest(PollyUnitTests ${test_name} ${ARGN})
   else()
-    add_executable(${test_name} ${ARGN})
+    add_executable(${test_name} EXCLUDE_FROM_ALL ${ARGN})
     set_target_properties(${test_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
 
     target_link_libraries(${test_name} gtest_main gtest)




More information about the llvm-commits mailing list