From 113671deca139ec55a44eec7caa1b35058253d8a Mon Sep 17 00:00:00 2001 From: jcarpent <jcarpent@laas.fr> Date: Fri, 14 Oct 2016 15:03:20 +0200 Subject: [PATCH] [CMake] Change HEADER variable name to avoid double installation of headers --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6970a816..4962eb9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,7 +73,7 @@ INCLUDE_DIRECTORIES(${NUMPY_INCLUDE_DIRS}) # ---------------------------------------------------- # --- INCLUDE ---------------------------------------- # ---------------------------------------------------- -SET(${PROJECT_NAME}_HEADERS +SET(HEADERS src/eigenpy.hpp src/exception.hpp src/details.hpp @@ -87,7 +87,7 @@ SET(${PROJECT_NAME}_HEADERS MAKE_DIRECTORY("${${PROJECT_NAME}_BINARY_DIR}/include/eigenpy") INCLUDE_DIRECTORIES(${${PROJECT_NAME}_BINARY_DIR}/include/eigenpy) -FOREACH(header ${${PROJECT_NAME}_HEADERS}) +FOREACH(header ${HEADERS}) GET_FILENAME_COMPONENT(headerName ${header} NAME) IF(WIN32) execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different @@ -113,7 +113,7 @@ SET(${PROJECT_NAME}_SOURCES src/quaternion.cpp ) -ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS}) +ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${HEADERS}) TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME}) PKG_CONFIG_USE_DEPENDENCY(${PROJECT_NAME} eigen3) -- GitLab