Skip to content

Commit 6f981e9

Browse files
committed
Revert "Replace ${CMAKE_SOURCE_DIR} with ${PROJECT_SOURCE_DIR} " (#157)
This reverts commit 817af60.
1 parent cefed0c commit 6f981e9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dynamicEDT3D/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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} )
2929
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BASE_DIR}/lib )
3030
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BASE_DIR}/lib )
3131
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BASE_DIR}/bin )
@@ -51,8 +51,8 @@ set(INSTALL_TARGETS_DEFAULT_ARGS
5151
)
5252

5353
find_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
)
5757
MESSAGE(STATUS "Found octomap version: " ${octomap_VERSION})
5858
MESSAGE(STATUS "octomap libraries: ${OCTOMAP_LIBRARIES}")

octomap/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ IF(OCTOMAP_OMP)
3535
ENDIF(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} )
3939
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BASE_DIR}/lib )
4040
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BASE_DIR}/lib )
4141
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BASE_DIR}/bin )

octovis/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SET (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
2424
INCLUDE(CompilerSettings)
2525

2626
# Set output directories for libraries and executables
27-
SET( BASE_DIR ${PROJECT_SOURCE_DIR} )
27+
SET( BASE_DIR ${CMAKE_SOURCE_DIR} )
2828
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BASE_DIR}/lib )
2929
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BASE_DIR}/lib )
3030
SET( 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
4545
find_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
)
4949
MESSAGE(STATUS "Found octomap version: " ${octomap_VERSION})
5050

0 commit comments

Comments
 (0)