diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt index 2cf71216040f2c610184637970128358b8f6b12c..5ff739565b9a0fe8828b9275bfb9c01e4d0f9c90 100644 --- a/DDG4/CMakeLists.txt +++ b/DDG4/CMakeLists.txt @@ -20,9 +20,16 @@ include_directories(${CMAKE_SOURCE_DIR}/DDCore/include #---Add Library------------------------------------------------------------------- if(DD4HEP_USE_BOOST) - list(APPEND include_directories ${BOOST_INCLUDE_DIR}) + #fg: canonical way of finding Boost w/ cmake uses + # -D Boost_DIR=_path_to_boost + # and then FindBoost.cmake sets the variable Boost_INCLUDE_DIR + FIND_PACKAGE( Boost REQUIRED) + include_directories( ${Boost_INCLUDE_DIR}) + #list(APPEND include_directories ${BOOST_INCLUDE_DIR}) file(GLOB sources src/*.cpp parsers/*.cpp) add_definitions(-DDD4HEP_USE_BOOST) +# MESSAGE( STATUS "Boost_INCLUDE_DIR = ${Boost_INCLUDE_DIR} ") +# MESSAGE( STATUS "include_directories= ${include_directories} ") else() file(GLOB sources src/*.cpp) endif()