diff options
author | Brad King <brad.king@kitware.com> | 2018-11-13 18:33:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-13 18:35:19 (GMT) |
commit | 1b8f0ca5154c9fe8122b31e25dac65a4df94f5b1 (patch) | |
tree | 3afe5600d84226cef88d10b8f5e053259b2dae84 /Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake | |
parent | 206ce3c0ba730f34444a8627d6a4f261bf60fc92 (diff) | |
download | CMake-1b8f0ca5154c9fe8122b31e25dac65a4df94f5b1.zip CMake-1b8f0ca5154c9fe8122b31e25dac65a4df94f5b1.tar.gz CMake-1b8f0ca5154c9fe8122b31e25dac65a4df94f5b1.tar.bz2 |
Tests: Split GNUInstallDirs expectations for FreeBSD
Diffstat (limited to 'Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake b/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake index e00af58..d671ee0 100644 --- a/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake +++ b/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake @@ -1,7 +1,11 @@ include(RunCMake) -if(SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$") - set(EXPECT_BSD 1) +if(SYSTEM_NAME STREQUAL "FreeBSD") + set(variant "-FreeBSD") +elseif(SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$") + set(variant "-BSD") +else() + set(variant "") endif() foreach(case @@ -10,8 +14,6 @@ foreach(case Usr UsrLocal ) - if(EXPECT_BSD) - set(RunCMake-stderr-file ${case}-BSD-stderr.txt) - endif() + set(RunCMake-stderr-file ${case}${variant}-stderr.txt) run_cmake(${case}) endforeach() |