Skip to content
Snippets Groups Projects
Commit d69ff224 authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Fix installation of new command line tools

parent 7de5aaeb
No related branches found
No related tags found
No related merge requests found
...@@ -31,9 +31,8 @@ if(python) ...@@ -31,9 +31,8 @@ if(python)
COMMAND ${CMAKE_COMMAND} -E copy ${rawUtilName} ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/${utilName}) COMMAND ${CMAKE_COMMAND} -E copy ${rawUtilName} ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/${utilName})
endforeach() endforeach()
set(cmdLineUtilsModule "python/cmdLineUtils.py") install(FILES python/cmdLineUtils.py DESTINATION ${runtimedir})
install(FILES ${cmdLineUtilsModule} DESTINATION ${runtimedir}) install(CODE "execute_process(COMMAND python -m py_compile \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${runtimedir}/cmdLineUtils.py )")
install(CODE "execute_process(COMMAND python -m py_compile \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${runtimedir}/${cmdLineUtilsModule} )") install(CODE "execute_process(COMMAND python -O -m py_compile \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${runtimedir}/cmdLineUtils.py )")
install(CODE "execute_process(COMMAND python -O -m py_compile \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${runtimedir}/${cmdLineUtilsModule} )") file(COPY python/cmdLineUtils.py DESTINATION ${CMAKE_BINARY_DIR}/${runtimedir})
file(COPY ${cmdLineUtilsModule} DESTINATION ${CMAKE_BINARY_DIR}/${runtimedir})
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment