d430cb7c36
Fix test cases whose behavior differs when their source or build tree is under CMAKE_INSTALL_PREFIX by setting an install prefix under the build tree. Otherwise they may fail when run under the default install prefix (e.g. /usr/local).
13 lines
353 B
CMake
13 lines
353 B
CMake
include(RunCMake)
|
|
|
|
# Protect tests from running inside the default install prefix.
|
|
set(RunCMake_TEST_OPTIONS "-DCMAKE_INSTALL_PREFIX=${RunCMake_BINARY_DIR}/NotDefaultPrefix")
|
|
|
|
run_cmake(NotFoundContent)
|
|
run_cmake(DebugIncludes)
|
|
run_cmake(TID-bad-target)
|
|
run_cmake(ImportedTarget)
|
|
run_cmake(CMP0021)
|
|
run_cmake(install_config)
|
|
run_cmake(incomplete-genex)
|