diff options
Diffstat (limited to 'Tests/RunCMake/include')
19 files changed, 89 insertions, 0 deletions
diff --git a/Tests/RunCMake/include/CMP0148-Interp-NEW-name-result.txt b/Tests/RunCMake/include/CMP0148-Interp-NEW-name-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-NEW-name-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/include/CMP0148-Interp-NEW-name-stderr.txt b/Tests/RunCMake/include/CMP0148-Interp-NEW-name-stderr.txt new file mode 100644 index 0000000..8627c2e --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-NEW-name-stderr.txt @@ -0,0 +1,6 @@ +^CMake Error at CMP0148-Interp-NEW-name\.cmake:[0-9]+ \(include\): + include could not find requested file: + + FindPythonInterp +Call Stack \(most recent call first\): + CMakeLists\.txt:[0-9]+ \(include\)$ diff --git a/Tests/RunCMake/include/CMP0148-Interp-NEW-name.cmake b/Tests/RunCMake/include/CMP0148-Interp-NEW-name.cmake new file mode 100644 index 0000000..7d73dc4 --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-NEW-name.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0148 NEW) +include(FindPythonInterp) diff --git a/Tests/RunCMake/include/CMP0148-Interp-NEW-path-result.txt b/Tests/RunCMake/include/CMP0148-Interp-NEW-path-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-NEW-path-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/include/CMP0148-Interp-NEW-path-stderr.txt b/Tests/RunCMake/include/CMP0148-Interp-NEW-path-stderr.txt new file mode 100644 index 0000000..0b0f29d --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-NEW-path-stderr.txt @@ -0,0 +1,6 @@ +^CMake Error at [^ +]*/Modules/FindPythonInterp.cmake:[0-9]+ \(message\): + The FindPythonInterp module has been removed by policy CMP0148\. +Call Stack \(most recent call first\): + CMP0148-Interp-NEW-path\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\)$ diff --git a/Tests/RunCMake/include/CMP0148-Interp-NEW-path.cmake b/Tests/RunCMake/include/CMP0148-Interp-NEW-path.cmake new file mode 100644 index 0000000..1f8630e --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-NEW-path.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0148 NEW) +include(${CMAKE_ROOT}/Modules/FindPythonInterp.cmake) diff --git a/Tests/RunCMake/include/CMP0148-Interp-OLD.cmake b/Tests/RunCMake/include/CMP0148-Interp-OLD.cmake new file mode 100644 index 0000000..8905221 --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-OLD.cmake @@ -0,0 +1,7 @@ +cmake_policy(SET CMP0148 OLD) +set(_FindPythonInterp_testing 1) +include(FindPythonInterp) + +if(NOT _FindPythonInterp_included) + message(FATAL_ERROR "FindPythonInterp.cmake not included") +endif() diff --git a/Tests/RunCMake/include/CMP0148-Interp-WARN-stderr.txt b/Tests/RunCMake/include/CMP0148-Interp-WARN-stderr.txt new file mode 100644 index 0000000..5bd6935 --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-WARN-stderr.txt @@ -0,0 +1,8 @@ +^CMake Warning \(dev\) at CMP0148-Interp-WARN\.cmake:[0-9]+ \(include\): + Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules + are removed\. Run "cmake --help-policy CMP0148" for policy details\. Use + the cmake_policy command to set the policy and suppress this warning\. + +Call Stack \(most recent call first\): + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\.$ diff --git a/Tests/RunCMake/include/CMP0148-Interp-WARN.cmake b/Tests/RunCMake/include/CMP0148-Interp-WARN.cmake new file mode 100644 index 0000000..18f302d --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Interp-WARN.cmake @@ -0,0 +1,7 @@ +# Do not set CMP0148. +set(_FindPythonInterp_testing 1) +include(FindPythonInterp) + +if(NOT _FindPythonInterp_included) + message(FATAL_ERROR "FindPythonInterp.cmake not included") +endif() diff --git a/Tests/RunCMake/include/CMP0148-Libs-NEW-name-result.txt b/Tests/RunCMake/include/CMP0148-Libs-NEW-name-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-NEW-name-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/include/CMP0148-Libs-NEW-name-stderr.txt b/Tests/RunCMake/include/CMP0148-Libs-NEW-name-stderr.txt new file mode 100644 index 0000000..4e1f97c --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-NEW-name-stderr.txt @@ -0,0 +1,6 @@ +^CMake Error at CMP0148-Libs-NEW-name\.cmake:[0-9]+ \(include\): + include could not find requested file: + + FindPythonLibs +Call Stack \(most recent call first\): + CMakeLists\.txt:[0-9]+ \(include\)$ diff --git a/Tests/RunCMake/include/CMP0148-Libs-NEW-name.cmake b/Tests/RunCMake/include/CMP0148-Libs-NEW-name.cmake new file mode 100644 index 0000000..c9877bc --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-NEW-name.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0148 NEW) +include(FindPythonLibs) diff --git a/Tests/RunCMake/include/CMP0148-Libs-NEW-path-result.txt b/Tests/RunCMake/include/CMP0148-Libs-NEW-path-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-NEW-path-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/include/CMP0148-Libs-NEW-path-stderr.txt b/Tests/RunCMake/include/CMP0148-Libs-NEW-path-stderr.txt new file mode 100644 index 0000000..5f1037d --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-NEW-path-stderr.txt @@ -0,0 +1,6 @@ +^CMake Error at [^ +]*/Modules/FindPythonLibs.cmake:[0-9]+ \(message\): + The FindPythonLibs module has been removed by policy CMP0148\. +Call Stack \(most recent call first\): + CMP0148-Libs-NEW-path\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\)$ diff --git a/Tests/RunCMake/include/CMP0148-Libs-NEW-path.cmake b/Tests/RunCMake/include/CMP0148-Libs-NEW-path.cmake new file mode 100644 index 0000000..29b315f --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-NEW-path.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0148 NEW) +include(${CMAKE_ROOT}/Modules/FindPythonLibs.cmake) diff --git a/Tests/RunCMake/include/CMP0148-Libs-OLD.cmake b/Tests/RunCMake/include/CMP0148-Libs-OLD.cmake new file mode 100644 index 0000000..b69e160 --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-OLD.cmake @@ -0,0 +1,7 @@ +cmake_policy(SET CMP0148 OLD) +set(_FindPythonLibs_testing 1) +include(FindPythonLibs) + +if(NOT _FindPythonLibs_included) + message(FATAL_ERROR "FindPythonLibs.cmake not included") +endif() diff --git a/Tests/RunCMake/include/CMP0148-Libs-WARN-stderr.txt b/Tests/RunCMake/include/CMP0148-Libs-WARN-stderr.txt new file mode 100644 index 0000000..c24abd4 --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-WARN-stderr.txt @@ -0,0 +1,8 @@ +^CMake Warning \(dev\) at CMP0148-Libs-WARN\.cmake:[0-9]+ \(include\): + Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules + are removed\. Run "cmake --help-policy CMP0148" for policy details\. Use + the cmake_policy command to set the policy and suppress this warning\. + +Call Stack \(most recent call first\): + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\.$ diff --git a/Tests/RunCMake/include/CMP0148-Libs-WARN.cmake b/Tests/RunCMake/include/CMP0148-Libs-WARN.cmake new file mode 100644 index 0000000..d8dc00c --- /dev/null +++ b/Tests/RunCMake/include/CMP0148-Libs-WARN.cmake @@ -0,0 +1,7 @@ +# Do not set CMP0148. +set(_FindPythonLibs_testing 1) +include(FindPythonLibs) + +if(NOT _FindPythonLibs_included) + message(FATAL_ERROR "FindPythonLibs.cmake not included") +endif() diff --git a/Tests/RunCMake/include/RunCMakeTest.cmake b/Tests/RunCMake/include/RunCMakeTest.cmake index b6fdb54..685173e 100644 --- a/Tests/RunCMake/include/RunCMakeTest.cmake +++ b/Tests/RunCMake/include/RunCMakeTest.cmake @@ -12,3 +12,12 @@ run_cmake(CMP0146-OLD) run_cmake(CMP0146-WARN) run_cmake(CMP0146-NEW-name) run_cmake(CMP0146-NEW-path) + +run_cmake(CMP0148-Interp-OLD) +run_cmake(CMP0148-Interp-WARN) +run_cmake(CMP0148-Interp-NEW-name) +run_cmake(CMP0148-Interp-NEW-path) +run_cmake(CMP0148-Libs-OLD) +run_cmake(CMP0148-Libs-WARN) +run_cmake(CMP0148-Libs-NEW-name) +run_cmake(CMP0148-Libs-NEW-path) |