Commit 23f77706 authored by Francois Keith's avatar Francois Keith Committed by Francois Keith
Browse files

Correct the Python_module handling

- correct the mkdir command to make it cross-platforms
- remove the '/' in the module name (forbidden in win32 systems)
parent cd818538
...@@ -111,15 +111,13 @@ EXEC_PROGRAM("${PKG_CONFIG_EXECUTABLE}" ...@@ -111,15 +111,13 @@ EXEC_PROGRAM("${PKG_CONFIG_EXECUTABLE}"
OUTPUT_VARIABLE "DYNAMIC_GRAPH_PLUGIN_DIR") OUTPUT_VARIABLE "DYNAMIC_GRAPH_PLUGIN_DIR")
# Tracer plugin # Tracer plugin
ADD_DEPENDENCIES(${LIBRARY_NAME} MKDIR_tracer) file(MAKE_DIRECTORY ../lib/dynamic_graph/tracer)
ADD_CUSTOM_TARGET(MKDIR_tracer mkdir -p ../lib/dynamic_graph/tracer) SET(TRACER_PLUGIN ${DYNAMIC_GRAPH_PLUGIN_DIR}/tracer${CMAKE_STATIC_LIBRARY_SUFFIX})
SET(TRACER_PLUGIN ${DYNAMIC_GRAPH_PLUGIN_DIR}/tracer.so) DYNAMIC_GRAPH_PYTHON_MODULE("tracer" ${TRACER_PLUGIN} tracer-wrap)
DYNAMIC_GRAPH_PYTHON_MODULE("tracer" ${TRACER_PLUGIN} tracer/wrap)
# TracerRealTime plugin # TracerRealTime plugin
ADD_DEPENDENCIES(${LIBRARY_NAME} MKDIR_TracerRealTime) file(MAKE_DIRECTORY ../lib/dynamic_graph/tracer_real_time)
ADD_CUSTOM_TARGET(MKDIR_TracerRealTime mkdir -p ../lib/dynamic_graph/tracer_real_time) SET(TRACERREALTIME_PLUGIN ${DYNAMIC_GRAPH_PLUGIN_DIR}/tracer-real-time${CMAKE_STATIC_LIBRARY_SUFFIX})
SET(TRACERREALTIME_PLUGIN ${DYNAMIC_GRAPH_PLUGIN_DIR}/tracer-real-time.so) DYNAMIC_GRAPH_PYTHON_MODULE("tracer_real_time" ${TRACERREALTIME_PLUGIN} tracer_real_time-wrap)
DYNAMIC_GRAPH_PYTHON_MODULE("tracer_real_time" ${TRACERREALTIME_PLUGIN} tracer_real_time/wrap)
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