diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-10-01 15:47:37 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-10-01 15:51:16 (GMT) |
commit | 5537ccd814700edb529e5e79137601bb2987c892 (patch) | |
tree | f5f8b3600b641516f0b4d4263b1f5455727e0e62 /Tests/FindPython/RequiredArtifacts | |
parent | 0519db374c79f654b55de396943cafcf36db695f (diff) | |
download | CMake-5537ccd814700edb529e5e79137601bb2987c892.zip CMake-5537ccd814700edb529e5e79137601bb2987c892.tar.gz CMake-5537ccd814700edb529e5e79137601bb2987c892.tar.bz2 |
FindPython: Tests optimizations
* Use 'project(... LANGUAGES NONE)' when possible
* enhance error messages wording
Diffstat (limited to 'Tests/FindPython/RequiredArtifacts')
-rw-r--r-- | Tests/FindPython/RequiredArtifacts/CMakeLists.txt | 6 | ||||
-rw-r--r-- | Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Tests/FindPython/RequiredArtifacts/CMakeLists.txt b/Tests/FindPython/RequiredArtifacts/CMakeLists.txt index 39e8ea5..6e854e3 100644 --- a/Tests/FindPython/RequiredArtifacts/CMakeLists.txt +++ b/Tests/FindPython/RequiredArtifacts/CMakeLists.txt @@ -1,16 +1,16 @@ cmake_minimum_required(VERSION 3.1) -project(TestRequiredArtifacts LANGUAGES C) +project(TestRequiredArtifacts LANGUAGES NONE) include(CTest) find_package(Python2 REQUIRED COMPONENTS Interpreter Development) if (NOT Python2_FOUND) - message (FATAL_ERROR "Fail to found Python 2") + message (FATAL_ERROR "Failed to find Python 2") endif() find_package(Python3 REQUIRED COMPONENTS Interpreter Development) if (NOT Python3_FOUND) - message (FATAL_ERROR "Fail to found Python 3") + message (FATAL_ERROR "Failed to find Python 3") endif() diff --git a/Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt b/Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt index b859ac5..036407f 100644 --- a/Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt +++ b/Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.1) -project(TestRequiredArtifacts.Check LANGUAGES C) +project(TestRequiredArtifacts.Check LANGUAGES NONE) set (components) if (CHECK_INTERPRETER) @@ -29,13 +29,13 @@ endif() if (CHECK_INTERPRETER AND NOT Python3_EXECUTABLE STREQUAL required_interpreter) - message (FATAL_ERROR "Fail to use input variable Python3_EXECUTABLE") + message (FATAL_ERROR "Failed to use input variable Python3_EXECUTABLE") endif() if (CHECK_LIBRARY AND NOT Python3_LIBRARY_RELEASE STREQUAL required_library) - message (FATAL_ERROR "Fail to use input variable Python3_LIBRARY") + message (FATAL_ERROR "Failed to use input variable Python3_LIBRARY") endif() if (CHECK_INCLUDE AND NOT Python3_INCLUDE_DIRS STREQUAL required_include) - message (FATAL_ERROR "Fail to use input variable Python3_INCLUDE_DIR") + message (FATAL_ERROR "Failed to use input variable Python3_INCLUDE_DIR") endif() |