summaryrefslogtreecommitdiff
path: root/Tests/FindPython/RequiredArtifacts
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-10-01 17:47:37 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2020-10-01 17:51:16 +0200
commit5537ccd814700edb529e5e79137601bb2987c892 (patch)
treef5f8b3600b641516f0b4d4263b1f5455727e0e62 /Tests/FindPython/RequiredArtifacts
parent0519db374c79f654b55de396943cafcf36db695f (diff)
downloadcmake-5537ccd814700edb529e5e79137601bb2987c892.tar.gz
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.txt6
-rw-r--r--Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt8
2 files changed, 7 insertions, 7 deletions
diff --git a/Tests/FindPython/RequiredArtifacts/CMakeLists.txt b/Tests/FindPython/RequiredArtifacts/CMakeLists.txt
index 39e8ea5626..6e854e3ee9 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 b859ac57f3..036407f591 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()