diff options
author | Brad King <brad.king@kitware.com> | 2017-04-26 12:34:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-26 12:34:16 (GMT) |
commit | 6d1be6e3826a98ffbcd3bf7d951024e34d69e452 (patch) | |
tree | d20b95c9154c883e43fe043b38b392c7c350e18f | |
parent | 8985c1dfd79804d6318e6dae6e47597a7b71dcd4 (diff) | |
download | CMake-6d1be6e3826a98ffbcd3bf7d951024e34d69e452.zip CMake-6d1be6e3826a98ffbcd3bf7d951024e34d69e452.tar.gz CMake-6d1be6e3826a98ffbcd3bf7d951024e34d69e452.tar.bz2 |
Tests: Split RunCMake.BuildDepends make-only condition
-rw-r--r-- | Tests/RunCMake/BuildDepends/RunCMakeTest.cmake | 7 |
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) |