From 931eebea2daf1254125f358ded7c9ef452fc92e9 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Fri, 8 May 2020 23:45:29 +0200
Subject: [PATCH] [CMake] fix PACKAGE_EXTRA_MACROS use

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 99821fc..380beb8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,6 @@ OPTION(SUFFIX_SO_VERSION "Suffix library name with its version" ON)
 SET(PROJECT_USE_CMAKE_EXPORT TRUE)
 SET(CXX_DISABLE_WERROR TRUE)
 SET(CMAKE_CXX_STANDARD 11)
-SET(PACKAGE_EXTRA_MACROS "set(TALOS_DATA_PREFIX ${CMAKE_INSTALL_PREFIX})")
 
 # JRL-cmakemodule setup
 INCLUDE(cmake/base.cmake)
@@ -51,3 +50,4 @@ FOREACH(dir config gazebo meshes robots urdf srdf launch)
 ENDFOREACH(dir)
 
 INSTALL(FILES package.xml DESTINATION share/${PROJECT_NAME})
+SET(PACKAGE_EXTRA_MACROS "set(TALOS_DATA_PREFIX ${CMAKE_INSTALL_PREFIX})")
-- 
GitLab