Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
parametric-curves
Commits
94568a81
Commit
94568a81
authored
Feb 10, 2018
by
Olivier Stasse
Browse files
Move the link inside the add_custom_target.
parent
58d051b3
Pipeline
#1295
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/CMakeLists.txt
View file @
94568a81
...
...
@@ -36,12 +36,13 @@ SET(PYTHON_FILES
FOREACH
(
python
${
PYTHON_FILES
}
)
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
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
${
PYTHON_EXECUTABLE
}
-m py_compile
${
CMAKE_BINARY_DIR
}
/bindings/python/
${
PROJECT_NAME
}
/
${
pythonFile
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment