From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/3rdparty/2geom/CMakeScripts/FindPython.cmake | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/3rdparty/2geom/CMakeScripts/FindPython.cmake (limited to 'src/3rdparty/2geom/CMakeScripts/FindPython.cmake') diff --git a/src/3rdparty/2geom/CMakeScripts/FindPython.cmake b/src/3rdparty/2geom/CMakeScripts/FindPython.cmake new file mode 100644 index 0000000..3f05b58 --- /dev/null +++ b/src/3rdparty/2geom/CMakeScripts/FindPython.cmake @@ -0,0 +1,14 @@ +# figure out Python flags +#TODO - rewrite to use ALLCAPS? +FIND_PACKAGE(PythonInterp) +IF(PYTHONINTERP_FOUND) + EXEC_PROGRAM(${PYTHON_EXECUTABLE} + ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LIBS + OUTPUT_VARIABLE PYTHON_LINK_LIBRARIES ) + EXEC_PROGRAM(${PYTHON_EXECUTABLE} + ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LINKFORSTATIC + OUTPUT_VARIABLE PYTHON_LINKFORSTATIC ) +ELSE(PYTHONINTERP_FOUND) + SET(PYTHON_LINK_LIBRARIES "") + SET(PYTHON_LINKFORSTATIC "") +ENDIF(PYTHONINTERP_FOUND) -- cgit v1.2.3