File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,10 @@ endif( WITH_BOOST )
341341# See the cmake doc.
342342# Till then, stay with the old macro.
343343set (Python_ADDITIONAL_VERSIONS 2.7)
344- find_package (PythonInterp 3.4)
344+ find_package (PythonInterp 3.5)
345+ if (NOT PYTHONINTERP_FOUND)
346+ find_package (PythonInterp 2.7)
347+ endif ()
345348
346349# This target is built by pymoose/CMakeLists.txt file.
347350add_subdirectory (pymoose)
@@ -373,10 +376,9 @@ endif()
373376install (TARGETS moose.bin DESTINATION bin CONFIGURATIONS Debug)
374377install (TARGETS libmoose DESTINATION lib CONFIGURATIONS Debug)
375378
376- install (CODE
377- "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py --skip-build
378- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} )"
379- )
379+ install (CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py --skip-build
380+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} VERBATIM)"
381+ CONFIGURATION Debug Release)
380382
381383# Print message to start build process
382384if (${CMAKE_BUILD_TOOL} MATCHES "make" )
You can’t perform that action at this time.
0 commit comments