Commit 74739acf authored by jcarpent's avatar jcarpent
Browse files

[CMake] Use ADD_COMPILE_DEPENDENCY

parent 07f85061
......@@ -42,16 +42,6 @@ IF(APPLE)
endif("${isSystemDir}" STREQUAL "-1")
ENDIF(APPLE)
# This should go to jrl-cmakemodules if accepted - Similar to ADD_DOC_DEPENDENC but with a requiered option
# This macro is for requiered components which must not appear as a dependence of the main library
MACRO(ADD_SEPARATE_DEPENDENCY PKG_CONFIG_STRING)
SET(PKG_CONFIG_DEBUG_STRING "")
FOREACH(ARG ${ARGN})
SET(PKG_CONFIG_DEBUG_STRING ${ARG})
ENDFOREACH()
ADD_DEPENDENCY(0 1 ${PKG_CONFIG_STRING} "${PKG_CONFIG_DEBUG_STRING}")
ENDMACRO(ADD_SEPARATE_DEPENDENCY)
# Disable -Werror on Unix for now.
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_VERBOSE_MAKEFILE True)
......
......@@ -54,7 +54,7 @@ ENDMACRO(SYMLINK_AND_INSTALL_HEADERS HEADERS SUBPATH)
# --- DEPENDENCIES --- #
SET(PKG_CONFIG_PYWRAP_REQUIRES "eigenpy >= 1.3.1")
FOREACH(dep ${PKG_CONFIG_PYWRAP_REQUIRES})
ADD_SEPARATE_DEPENDENCY(${dep})
ADD_COMPILE_DEPENDENCY(${dep})
ENDFOREACH(dep ${PKG_CONFIG_PYWRAP_REQUIRES})
# --- LIBRARY --- #
......
Subproject commit 7927aefd4e5e6aec7dc22d243e121c3f9c7c1f99
Subproject commit c8ae5972e825bc27bf978f142b81915df19fef70
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