From cace0056511b90d85c6d4ae4496872af6127b288 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sun, 1 Jun 2014 18:59:03 -0400 Subject: [PATCH] When calling find_package(GTSAMCMakeTools), set the variable GTSAM_CMAKE_TOOLS_DIR so that files installed from there can be configured in projects and not only in GTSAM, e.g. dllexport.h.in --- cmake/GTSAMCMakeToolsConfig.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/GTSAMCMakeToolsConfig.cmake b/cmake/GTSAMCMakeToolsConfig.cmake index c79a2f5c2..126bcd2d9 100644 --- a/cmake/GTSAMCMakeToolsConfig.cmake +++ b/cmake/GTSAMCMakeToolsConfig.cmake @@ -1,3 +1,4 @@ # This config file modifies CMAKE_MODULE_PATH so that the GTSAM-CMakeTools files may be included - + +set(GTSAM_CMAKE_TOOLS_DIR "${CMAKE_CURRENT_LIST_DIR}") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")