Commit 94568a81 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

Move the link inside the add_custom_target.

parent 58d051b3
Pipeline #1295 failed with stage
in 0 seconds
...@@ -36,12 +36,13 @@ SET(PYTHON_FILES ...@@ -36,12 +36,13 @@ SET(PYTHON_FILES
FOREACH(python ${PYTHON_FILES}) FOREACH(python ${PYTHON_FILES})
GET_FILENAME_COMPONENT(pythonFile ${python} NAME) GET_FILENAME_COMPONENT(pythonFile ${python} NAME)
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E ${LINK}
${${PROJECT_NAME}_SOURCE_DIR}/python/${python}
${CMAKE_BINARY_DIR}/bindings/python/${PROJECT_NAME}/${pythonFile})
# Generate pyc file # Generate pyc file
add_custom_target(${pythonFile}c ALL add_custom_target(${pythonFile}c ALL
COMMAND
${CMAKE_COMMAND} -E ${LINK}
${${PROJECT_NAME}_SOURCE_DIR}/python/${python}
${CMAKE_BINARY_DIR}/bindings/python/${PROJECT_NAME}/${pythonFile}
COMMAND COMMAND
${PYTHON_EXECUTABLE} -m py_compile ${PYTHON_EXECUTABLE} -m py_compile
${CMAKE_BINARY_DIR}/bindings/python/${PROJECT_NAME}/${pythonFile}) ${CMAKE_BINARY_DIR}/bindings/python/${PROJECT_NAME}/${pythonFile})
......
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