Skip to content

Commit

Permalink
[CMake] fix FindCERN_ROOT to always check version
Browse files Browse the repository at this point in the history
This was previously only done when finding the CONFIG file
  • Loading branch information
KrisThielemans committed May 17, 2024
1 parent be32661 commit 510e429
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cmake/FindCERN_ROOT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,6 @@ if (CERN_ROOT_DEBUG)
endif()

INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CERN_ROOT "CERN ROOT not found. If you do have it, set ROOT_DIR (preferred), ROOTSYS or add root-config to your path" CERN_ROOT_VERSION CERN_ROOT_LIBRARIES CERN_ROOT_INCLUDE_DIRS)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CERN_ROOT FAIL_MESSAGE "CERN ROOT not found. If you do have it, set ROOT_DIR (preferred), ROOTSYS or add root-config to your path"
VERSION_VAR CERN_ROOT_VERSION
REQUIRED_VARS CERN_ROOT_LIBRARIES CERN_ROOT_INCLUDE_DIRS)

0 comments on commit 510e429

Please sign in to comment.