Skip to content

Commit

Permalink
[CMake][Exp PyROOT] Fix PYTHON_EXECUTABLE for cmdLineUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgalli authored and Axel-Naumann committed May 15, 2020
1 parent 3f5ccf2 commit cf769cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ foreach(rawUtilName ${utils})
# We need the .py only on Windows
string(REPLACE ".py" "" utilName ${utilName})
endif()
set(python ${PYTHON_EXECUTABLE})
set(python ${PYTHON_EXECUTABLE_Development_Main})
configure_file(${rawUtilName} ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/${utilName} @ONLY)

install(FILES ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/${utilName}
Expand All @@ -69,8 +69,8 @@ if(IS_ABSOLUTE ${runtimedir})
else()
set(absruntimedir \${CMAKE_INSTALL_PREFIX}/${runtimedir})
endif()
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m py_compile \$ENV{DESTDIR}${absruntimedir}/cmdLineUtils.py)")
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -O -m py_compile \$ENV{DESTDIR}${absruntimedir}/cmdLineUtils.py)")
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE_Development_Main} -m py_compile \$ENV{DESTDIR}${absruntimedir}/cmdLineUtils.py)")
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE_Development_Main} -O -m py_compile \$ENV{DESTDIR}${absruntimedir}/cmdLineUtils.py)")
configure_file(python/cmdLineUtils.py ${localruntimedir}/cmdLineUtils.py @ONLY)


Expand Down

0 comments on commit cf769cc

Please sign in to comment.