Skip to content

Commit

Permalink
Enable out-of-source build
Browse files Browse the repository at this point in the history
Use CMAKE_BINARY_DIR instead of CMAKE_SOURCE_DIR to specify output directories.
See OctoMap#133
  • Loading branch information
xaedes authored Jan 11, 2019
1 parent 23cb13f commit 5ed36cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octomap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ IF(OCTOMAP_OMP)
ENDIF(OCTOMAP_OMP)

# Set output directories for libraries and executables
SET( BASE_DIR ${CMAKE_SOURCE_DIR} )
SET( BASE_DIR ${CMAKE_BINARY_DIR} )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BASE_DIR}/lib )
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BASE_DIR}/lib )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BASE_DIR}/bin )
Expand Down

0 comments on commit 5ed36cd

Please sign in to comment.