File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ INCLUDE(CompilerSettings)
2525
2626
2727# Set output directories for libraries and executables
28- SET ( BASE_DIR ${PROJECT_SOURCE_DIR } )
28+ SET ( BASE_DIR ${CMAKE_SOURCE_DIR } )
2929SET ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BASE_DIR} /lib )
3030SET ( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BASE_DIR} /lib )
3131SET ( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BASE_DIR} /bin )
@@ -51,8 +51,8 @@ set(INSTALL_TARGETS_DEFAULT_ARGS
5151)
5252
5353find_package (octomap REQUIRED
54- PATHS ${PROJECT_SOURCE_DIR} /../octomap /lib/cmake/octomap
55- NO_DEFAULT_PATH
54+ HINTS ${CMAKE_SOURCE_DIR} /lib/cmake/octomap
55+ ${CMAKE_SOURCE_DIR} /../octomap/lib/cmake/octomap
5656)
5757MESSAGE (STATUS "Found octomap version: " ${octomap_VERSION} )
5858MESSAGE (STATUS "octomap libraries: ${OCTOMAP_LIBRARIES} " )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ IF(OCTOMAP_OMP)
3535ENDIF (OCTOMAP_OMP)
3636
3737# Set output directories for libraries and executables
38- SET ( BASE_DIR ${PROJECT_SOURCE_DIR } )
38+ SET ( BASE_DIR ${CMAKE_SOURCE_DIR } )
3939SET ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BASE_DIR} /lib )
4040SET ( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BASE_DIR} /lib )
4141SET ( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BASE_DIR} /bin )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ SET (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
2424INCLUDE (CompilerSettings)
2525
2626# Set output directories for libraries and executables
27- SET ( BASE_DIR ${PROJECT_SOURCE_DIR } )
27+ SET ( BASE_DIR ${CMAKE_SOURCE_DIR } )
2828SET ( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BASE_DIR} /lib )
2929SET ( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BASE_DIR} /lib )
3030SET ( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BASE_DIR} /bin )
@@ -43,8 +43,8 @@ endforeach( OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES )
4343# Otherwise you need to export octomap_DIR to the directory containing
4444# the file octomap-config.cmake
4545find_package (octomap ${OCTOVIS_MAJOR_VERSION} .${OCTOVIS_MINOR_VERSION} REQUIRED
46- PATHS ${PROJECT_SOURCE_DIR} /../octomap/ lib/cmake/octomap
47- NO_DEFAULT_PATH
46+ HINTS ${CMAKE_SOURCE_DIR} / lib/cmake/octomap
47+ ${CMAKE_SOURCE_DIR} /../octomap/lib/cmake/octomap
4848)
4949MESSAGE (STATUS "Found octomap version: " ${octomap_VERSION} )
5050
You can’t perform that action at this time.
0 commit comments