summaryrefslogtreecommitdiffstats
path: root/Tests/FindPython/Python2Embedded
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-10-01 15:47:37 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-10-01 15:51:16 (GMT)
commit5537ccd814700edb529e5e79137601bb2987c892 (patch)
treef5f8b3600b641516f0b4d4263b1f5455727e0e62 /Tests/FindPython/Python2Embedded
parent0519db374c79f654b55de396943cafcf36db695f (diff)
downloadCMake-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/Python2Embedded')
-rw-r--r--Tests/FindPython/Python2Embedded/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/FindPython/Python2Embedded/CMakeLists.txt b/Tests/FindPython/Python2Embedded/CMakeLists.txt
index 1cf6034..a1036ce 100644
--- a/Tests/FindPython/Python2Embedded/CMakeLists.txt
+++ b/Tests/FindPython/Python2Embedded/CMakeLists.txt
@@ -1,12 +1,12 @@
cmake_minimum_required(VERSION 3.1)
-project(TestPython2Embedded C)
+project(TestPython2Embedded LANGUAGES C)
include(CTest)
find_package(Python2 REQUIRED COMPONENTS Development.Embed)
if (NOT Python2_FOUND)
- message (FATAL_ERROR "Fail to found Python 2")
+ message (FATAL_ERROR "Failed to find Python 2")
endif()
if (Python2_Development_FOUND)
message (FATAL_ERROR "Python 2, COMPONENT 'Development' unexpectedly found")