summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-26 12:34:16 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-26 12:34:16 (GMT)
commit6d1be6e3826a98ffbcd3bf7d951024e34d69e452 (patch)
treed20b95c9154c883e43fe043b38b392c7c350e18f /Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
parent8985c1dfd79804d6318e6dae6e47597a7b71dcd4 (diff)
downloadCMake-6d1be6e3826a98ffbcd3bf7d951024e34d69e452.zip
CMake-6d1be6e3826a98ffbcd3bf7d951024e34d69e452.tar.gz
CMake-6d1be6e3826a98ffbcd3bf7d951024e34d69e452.tar.bz2
Tests: Split RunCMake.BuildDepends make-only condition
Diffstat (limited to 'Tests/RunCMake/BuildDepends/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/BuildDepends/RunCMakeTest.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
index 67a6101..736ecff 100644
--- a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
+++ b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake
@@ -43,9 +43,10 @@ endif()
run_BuildDepends(Custom-Symbolic-and-Byproduct)
run_BuildDepends(Custom-Always)
-if(RunCMake_GENERATOR MATCHES "Make" AND
- NOT "${RunCMake_BINARY_DIR}" STREQUAL "${RunCMake_SOURCE_DIR}")
- run_BuildDepends(MakeInProjectOnly)
+if(RunCMake_GENERATOR MATCHES "Make")
+ if(NOT "${RunCMake_BINARY_DIR}" STREQUAL "${RunCMake_SOURCE_DIR}")
+ run_BuildDepends(MakeInProjectOnly)
+ endif()
endif()
function(run_ReGeneration)