diff options
author | Josh Blum | 2011-09-21 07:55:24 -0700 |
---|---|---|
committer | Josh Blum | 2011-09-21 07:55:24 -0700 |
commit | ecd4271b0b71a832ef5c2c74dc14f05df7be8d93 (patch) | |
tree | e59429adb2397dbf1b4e530ef09e02d8e5e9124c /cmake | |
parent | 6b4fb9612f5ea460c79e80facba01c504a3d5049 (diff) | |
download | gnuradio-ecd4271b0b71a832ef5c2c74dc14f05df7be8d93.tar.gz gnuradio-ecd4271b0b71a832ef5c2c74dc14f05df7be8d93.tar.bz2 gnuradio-ecd4271b0b71a832ef5c2c74dc14f05df7be8d93.zip |
core: attempt at fixing up generation logic in gengen (filter, trellis TODO)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrPython.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake index f54dbc9ba..b33c2fe62 100644 --- a/cmake/Modules/GrPython.cmake +++ b/cmake/Modules/GrPython.cmake @@ -51,6 +51,18 @@ ENDIF(PYTHON_EXECUTABLE) #make the path to the executable appear in the cmake gui SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter") +#make sure we can use -B with python (introduced in 2.6) +IF(PYTHON_EXECUTABLE) + EXECUTE_PROCESS( + COMMAND ${PYTHON_EXECUTABLE} -B -c "" + OUTPUT_QUIET ERROR_QUIET + RESULT_VARIABLE PYTHON_HAS_DASH_B_RESULT + ) + IF(PYTHON_HAS_DASH_B_RESULT EQUAL 0) + SET(PYTHON_DASH_B "-B") + ENDIF() +ENDIF(PYTHON_EXECUTABLE) + ######################################################################## # Check for the existence of a python module: # - desc a string description of the check |