summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-14 13:59:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-11-14 13:59:19 (GMT)
commit117272412e9dee1a1595718590a48e4c6750df59 (patch)
tree517974d8e75961dc23d3fad174faafd5a4c99c94 /Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
parentaa4ab1f904dfd7f6e3a95d310cd4d38875902c4b (diff)
parentf835f189aeb38a791ad09ba5c2d89300a3fd16f1 (diff)
downloadCMake-117272412e9dee1a1595718590a48e4c6750df59.zip
CMake-117272412e9dee1a1595718590a48e4c6750df59.tar.gz
CMake-117272412e9dee1a1595718590a48e4c6750df59.tar.bz2
Merge topic 'GNUInstallDirs-FreeBSD-info'
f835f189ae GNUInstallDirs: Update FreeBSD "info" destination to share/info 4c0d97dd98 GNUInstallDirs: Split "info" and "man" default logic 1b8f0ca515 Tests: Split GNUInstallDirs expectations for FreeBSD Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Rolf Eike Beer <eike@sf-mail.de> Merge-request: !2588
Diffstat (limited to 'Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake12
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()