Authentication method changed. UCLouvain users, please use the "UCLouvain SSO" button to connect on the website and use ssh + ssh key (https://git.immc.ucl.ac.be/-/profile/keys) or https + personnal access token (https://git.immc.ucl.ac.be/-/profile/personal_access_tokens) in your git clients.

Commit 4a6899f6 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts Committed by Valentin Vallaeys
Browse files

fix slim wrappers dependencies (finally)

parent fa5c60ed
......@@ -27,6 +27,8 @@ endif(SWIG_FOUND AND PYTHONLIBS_FOUND)
#see CMake bug 4147 (modified to remove dgConfig.h)
MACRO(SWIG_GET_WRAPPER_DEPENDENCIES swigFile genWrapper language DEST_VARIABLE)
GET_FILENAME_COMPONENT(swig_getdeps_basename ${swigFile} NAME_WE)
GET_FILENAME_COMPONENT(swig_getdeps_fullpath ${swigFile} ABSOLUTE)
GET_FILENAME_COMPONENT(swig_getdeps_genWrapper_fullpath ${genWrapper} ABSOLUTE)
GET_FILENAME_COMPONENT(swig_getdeps_outdir ${genWrapper} PATH)
GET_SOURCE_FILE_PROPERTY(swig_getdeps_extra_flags "${swigFile}" SWIG_FLAGS)
IF("${swig_getdeps_extra_flags}" STREQUAL "NOTFOUND")
......@@ -47,8 +49,8 @@ MACRO(SWIG_GET_WRAPPER_DEPENDENCIES swigFile genWrapper language DEST_VARIABLE)
COMMAND ${SWIG_EXECUTABLE}
-MM -MF ${swig_getdeps_depsfile} ${swig_getdeps_extra_flags}
${CMAKE_SWIG_FLAGS} -${language}
-o ${genWrapper} ${swig_getdeps_include_dirs} ${swigFile}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-o ${swig_getdeps_genWrapper_fullpath} ${swig_getdeps_include_dirs} ${swig_getdeps_fullpath}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/dgpy
RESULT_VARIABLE swig_getdeps_result
ERROR_VARIABLE swig_getdeps_error
OUTPUT_STRIP_TRAILING_WHITESPACE)
......
Markdown is supported
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