summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
blob: 529e10a22420846ae52b0815303af2bc808dcdb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include(RunCMake)

if(SYSTEM_NAME STREQUAL "FreeBSD")
  set(variant "-FreeBSD")
elseif(SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$")
  set(variant "-BSD")
elseif(EXISTS "/etc/debian_version")
  set(variant "-Debian")
else()
  set(variant "")
endif()

foreach(case
    Opt
    Root
    Usr
    UsrLocal
    )
  set(RunCMake-stderr-file ${case}${variant}-stderr.txt)
  run_cmake(${case})
  unset(RunCMake-stderr-file)
endforeach()

run_cmake(NoSystem)