Files
CMake/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
Brad King 913736f17d Tests: Fix RunCMake.GNUInstallDirs on BSD platforms
The `GNUInstallDirs` module has different defaults on BSD platforms.
Update the test expected output to account for the difference.

Fixes: #16887
2017-06-02 16:26:30 -04:00

18 lines
265 B
CMake

include(RunCMake)
if(SYSTEM_NAME MATCHES "^(.*BSD|DragonFly)$")
set(EXPECT_BSD 1)
endif()
foreach(case
Opt
Root
Usr
UsrLocal
)
if(EXPECT_BSD)
set(RunCMake-stderr-file ${case}-BSD-stderr.txt)
endif()
run_cmake(${case})
endforeach()