From 8ad379364ba92b7d4e3bf215658a060e331adb1a Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Thu, 15 Oct 2020 19:34:39 +0200
Subject: [PATCH] [CMake] fix build with glpk

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index db8f618..4529abc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,7 +78,7 @@ SET(${PROJECT_NAME}_SOURCES
 
 if(USE_GLPK)
   SET(${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_SOURCES}
-    glpk-wrapper.cpp
+    src/glpk-wrapper.cpp
     )
 endif(USE_GLPK)
 
@@ -88,7 +88,7 @@ TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include>)
 TARGET_LINK_LIBRARIES(${PROJECT_NAME} curves::curves hpp-centroidal-dynamics::hpp-centroidal-dynamics)
 
 if(USE_GLPK)
-  TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} ${glpk_INCLUDE_DIR})
+  TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC ${glpk_INCLUDE_DIR})
   TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${glpk_LIBRARY})
 endif(USE_GLPK)
 
-- 
GitLab