summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/11 cmake_module_path/cmake/FindSomethingLikePython.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/cmake/11 cmake_module_path/cmake/FindSomethingLikePython.cmake')
-rw-r--r--test cases/cmake/11 cmake_module_path/cmake/FindSomethingLikePython.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/cmake/11 cmake_module_path/cmake/FindSomethingLikePython.cmake b/test cases/cmake/11 cmake_module_path/cmake/FindSomethingLikePython.cmake
new file mode 100644
index 0000000..0c663f4
--- /dev/null
+++ b/test cases/cmake/11 cmake_module_path/cmake/FindSomethingLikePython.cmake
@@ -0,0 +1,9 @@
+cmake_policy(VERSION 3.7)
+
+find_package(Python COMPONENTS Interpreter)
+if(Python_FOUND OR PYTHONINTERP_FOUND)
+ set(SomethingLikePython_FOUND ON)
+ set(SomethingLikePython_EXECUTABLE ${Python_EXECUTABLE})
+else()
+ set(SomethingLikePython_FOUND OFF)
+endif()