We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I built GTSAM without boost, yet linking it in my application leads to CMake looking for Boost. This is the CMake error:
CMake Error at C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message): Could NOT find Boost (missing: Boost_INCLUDE_DIR)
This is the GTSAMConfig.cmake:
# - Config file for GTSAM # It defines the following variables # GTSAM_INCLUDE_DIR - include directories for GTSAM # Compute paths get_filename_component(OUR_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) if(EXISTS "${OUR_CMAKE_DIR}/CMakeCache.txt") # In build tree set(GTSAM_INCLUDE_DIR C:/Users/cipadmin/Documents/Workspace/spear/3rd/gtsam CACHE PATH "GTSAM include directory") else() # Find installed library set(GTSAM_INCLUDE_DIR "${OUR_CMAKE_DIR}/../include" CACHE PATH "GTSAM include directory") endif() # Find dependencies, required by cmake exported targets: include(CMakeFindDependencyMacro) # Allow using cmake < 3.8 if(${CMAKE_VERSION} VERSION_LESS "3.8.0") find_package(Boost COMPONENTS ) else() find_dependency(Boost COMPONENTS ) endif() if(0) find_dependency(TBB 4.4 COMPONENTS tbb tbbmalloc) endif() if(OFF) find_dependency(Eigen3 REQUIRED) endif() # Load exports include(${OUR_CMAKE_DIR}/GTSAM-exports.cmake) # Load project-specific flags, if present if(EXISTS "${OUR_CMAKE_DIR}/gtsam_extra.cmake") include("${OUR_CMAKE_DIR}/gtsam_extra.cmake") endif() message(STATUS "GTSAM include directory: ${GTSAM_INCLUDE_DIR}")
cmake .. -DGTSAM_USE_BOOST_FEATURES=OFF -DGTSAM_ENABLE_BOOST_SERIALIZATION=OFF -DCMAKE_INSTALL_PREFIX=../cmake-install/ -DCMAKE_BUILD_TYPE=Release -DGTSAM_BUILD_UNSTABLE=OFF -DGTSAM_BUILD_PYTHON=OFF
It should not link to Boost if it is built without Boost.
Windows 10
The text was updated successfully, but these errors were encountered:
Ah yes, there should be a conditional in the config file...
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
I built GTSAM without boost, yet linking it in my application leads to CMake looking for Boost. This is the CMake error:
This is the GTSAMConfig.cmake:
Steps to reproduce
Expected behavior
It should not link to Boost if it is built without Boost.
Environment
Windows 10
Additional information
The text was updated successfully, but these errors were encountered: