aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gtsam/path-fixes.patch
blob: 5fc9784e44fbc88c58dd4fcfbe5b4e205b8b8338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in
index e11de1815..a25a9883d 100644
--- a/cmake/Config.cmake.in
+++ b/cmake/Config.cmake.in
@@ -4,13 +4,8 @@
 
 # Compute paths
 get_filename_component(OUR_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
-if(EXISTS "${OUR_CMAKE_DIR}/CMakeCache.txt")
-  # In build tree
-  set(@PACKAGE_NAME@_INCLUDE_DIR @GTSAM_SOURCE_DIR@ CACHE PATH "@PACKAGE_NAME@ include directory")
-else()
-  # Find installed library
-  set(@PACKAGE_NAME@_INCLUDE_DIR "${OUR_CMAKE_DIR}/@CONF_REL_INCLUDE_DIR@" CACHE PATH "@PACKAGE_NAME@ include directory")
-endif()
+# Find installed library
+set(@PACKAGE_NAME@_INCLUDE_DIR "${OUR_CMAKE_DIR}/@CONF_REL_INCLUDE_DIR@" CACHE PATH "@PACKAGE_NAME@ include directory")
 
 # Find dependencies, required by cmake exported targets:
 include(CMakeFindDependencyMacro)
diff --git a/gtsam/config.h.in b/gtsam/config.h.in
index d47329a62..60ca62931 100644
--- a/gtsam/config.h.in
+++ b/gtsam/config.h.in
@@ -25,7 +25,7 @@
 #define GTSAM_VERSION_STRING "@GTSAM_VERSION_STRING@"
 
 // Paths to example datasets distributed with GTSAM
-#define GTSAM_SOURCE_TREE_DATASET_DIR "@GTSAM_SOURCE_DIR@/examples/Data"
+#define GTSAM_SOURCE_TREE_DATASET_DIR ""
 #define GTSAM_INSTALLED_DATASET_DIR "@GTSAM_TOOLBOX_INSTALL_PATH@/gtsam_examples/Data"
 
 // Whether GTSAM is compiled to use quaternions for Rot3 (otherwise uses rotation matrices)