Skip to content

Commit

Permalink
Enable config mode serach procedure for FindBoost in CMakeLists.txt
Browse files Browse the repository at this point in the history
This avoids the following warning at configuration time:
```
CMake Warning (dev) at CMakeLists.txt:20 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.
```
  • Loading branch information
guitargeek committed Dec 18, 2024
1 parent 3d5667e commit 177abb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ find_package(ROOT REQUIRED COMPONENTS MathMore RooFitCore RooFit RooStats HistFa
find_package(Eigen3 REQUIRED)
find_package(Vdt)
find_package(LCG QUIET) # only used for FindBoost in StatAnalysis
find_package( Boost REQUIRED COMPONENTS program_options filesystem )
find_package(Boost REQUIRED COMPONENTS program_options filesystem)

message(STATUS "Using ROOT From: ${ROOT_INCLUDE_DIRS}")
include(${ROOT_USE_FILE})
Expand Down

0 comments on commit 177abb3

Please sign in to comment.