|
From: <ai...@us...> - 2013-07-31 19:20:03
|
Revision: 12454
http://sourceforge.net/p/plplot/code/12454
Author: airwin
Date: 2013-07-31 19:20:00 +0000 (Wed, 31 Jul 2013)
Log Message:
-----------
Add python to the list of necessary executables and figure out
PYTHON_VERSION (used in some build configurations).
Modified Paths:
--------------
trunk/cmake/build_projects/CMakeLists.txt
Modified: trunk/cmake/build_projects/CMakeLists.txt
===================================================================
--- trunk/cmake/build_projects/CMakeLists.txt 2013-07-31 15:55:51 UTC (rev 12453)
+++ trunk/cmake/build_projects/CMakeLists.txt 2013-07-31 19:20:00 UTC (rev 12454)
@@ -82,6 +82,7 @@
# available so might as well check it here.
bash
make
+ python
)
foreach(executable ${executables_LIST})
@@ -95,6 +96,15 @@
endif(NOT ${EXECUTABLE}_EXECUTABLE)
endforeach(executable ${executables_LIST})
+# Get the Python version.
+execute_process(
+ COMMAND
+ ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print(sysconfig.get_python_version())"
+ OUTPUT_VARIABLE PYTHON_VERSION
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+message(STATUS "PYTHON_VERSION = ${PYTHON_VERSION}")
+
# Use modified version of ExternalProject where cmake -E touch has
# been replaced with the TOUCH_EXECUTABLE command (to work around
# cmake bug 14020)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|