summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorMichael Stürmer <michael.stuermer@schaeffler.com>2017-08-30 15:40:02 (GMT)
committerMichael Stürmer <michael.stuermer@schaeffler.com>2017-09-04 09:42:35 (GMT)
commit9ed242807893becd4cd8245248fade93f7054c71 (patch)
treef25c531d66dff2d04a7fab3c834463a25018068f /Tests/RunCMake/add_custom_command/RunCMakeTest.cmake
parent34c4108bbcb8774821ac857e0ad0a92294ee8b0b (diff)
downloadCMake-9ed242807893becd4cd8245248fade93f7054c71.zip
CMake-9ed242807893becd4cd8245248fade93f7054c71.tar.gz
CMake-9ed242807893becd4cd8245248fade93f7054c71.tar.bz2
VS: only add custom command line if it is not empty
Diffstat (limited to 'Tests/RunCMake/add_custom_command/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/add_custom_command/RunCMakeTest.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake b/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake
index 397c63d..c12e5aa 100644
--- a/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake
+++ b/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake
@@ -10,3 +10,7 @@ run_cmake(SourceByproducts)
run_cmake(SourceUsesTerminal)
run_cmake(TargetImported)
run_cmake(TargetNotInDir)
+
+if(${RunCMake_GENERATOR} MATCHES "Visual Studio ([^89]|[89][0-9])")
+ run_cmake(RemoveEmptyCommands)
+endif()