Fixed GTSAM search by ignoring findGTSAM.cmake file from PCL

This commit is contained in:
matlabbe
2018-10-11 14:28:41 -04:00
parent aa13ea1a80
commit e4098cb54b
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ before_build:
- cd c:\projects\rtabmap\build
- ECHO %PROGRAMFILES%
- ECHO %PATH%
- cmake -G "Visual Studio 14 2015 Win64" -DOpenCV_DIR="C:\Program Files\opencv\build" -DPCL_DIR="C:\Program Files\PCL\cmake" -DGTSAM_DIR="C:\Program Files\GTSAM\CMake" -DBUILD_AS_BUNDLE=ON ..
- cmake -G "Visual Studio 14 2015 Win64" -DOpenCV_DIR="C:\Program Files\opencv\build" -DPCL_DIR="C:\Program Files\PCL\cmake" -DBUILD_AS_BUNDLE=ON ..
after_build :
- cmake --build . --config Release --target package
+2 -1
View File
@@ -316,7 +316,8 @@ IF(WITH_G2O)
ENDIF(WITH_G2O)
IF(WITH_GTSAM)
FIND_PACKAGE(GTSAM QUIET)
# Force config mode to ignore PCL's findGTSAM.cmake file
FIND_PACKAGE(GTSAM CONFIG QUIET)
ENDIF(WITH_GTSAM)
IF(WITH_FLYCAPTURE2)