Commit 58d051b3 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

Fix python/CMakeLists.txt (add a custom target to make sure that the proper...

Fix python/CMakeLists.txt (add a custom target to make sure that the proper python file is generated)
parent 4f8da5f5
......@@ -39,8 +39,10 @@ FOREACH(python ${PYTHON_FILES})
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E ${LINK}
${${PROJECT_NAME}_SOURCE_DIR}/python/${python}
${CMAKE_BINARY_DIR}/bindings/python/${PROJECT_NAME}/${pythonFile})
# Generate pyc file
EXECUTE_PROCESS(COMMAND
add_custom_target(${pythonFile}c ALL
COMMAND
${PYTHON_EXECUTABLE} -m py_compile
${CMAKE_BINARY_DIR}/bindings/python/${PROJECT_NAME}/${pythonFile})
# Tag pyc file as generated.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment