From a7880dc3b0fe51daab0ee03720af697a3d50aa92 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Wed, 14 Jun 2017 19:55:23 -0400 Subject: [PATCH] RTABMapConfig.cmake: fixed dependencies path error when path has a space (LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj') --- RTABMapConfig.cmake.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RTABMapConfig.cmake.in b/RTABMapConfig.cmake.in index 2660a6d5..e37f1847 100644 --- a/RTABMapConfig.cmake.in +++ b/RTABMapConfig.cmake.in @@ -65,7 +65,7 @@ endif(@CONF_WITH_GUI@) if(@CONF_VTK_QT@) find_package(VTK COMPONENTS vtkGUISupportQt NO_MODULE) # to define vtkGUISupportQt target endif(@CONF_VTK_QT@) -set(RTABMap_LIBRARIES ${RTABMap_LIBRARIES} @CONF_DEPENDENCIES@) +SET(RTABMap_LIBRARIES ${RTABMap_LIBRARIES} "@CONF_DEPENDENCIES@") #backward compatibilities set(RTABMAP_CORE ${RTABMap_CORE}) @@ -74,3 +74,7 @@ if(RTABMap_GUI) set(RTABMAP_GUI ${RTABMap_GUI}) set(RTABMAP_QT_VERSION @CONF_QT_VERSION@) endif(RTABMap_GUI) + +include(FindPackageHandleStandardArgs) +#find_package_handle_standard_args(RTABMap DEFAULT_MSG RTABMap_LIBRARIES RTABMap_INCLUDE_DIRS) +#mark_as_advanced(RTABMap_LIBRARIES RTABMap_INCLUDE_DIRS RTABMap_LIBRARY_DIRS) \ No newline at end of file