Dear All,
I’m using homebrew to install Root 6 on my Mac, and today I updated all my packages, and when I now want to recompile a script that uses root, that was working fine with the previous root version, I use CMake, I get the following error:
CMake Error at /opt/homebrew/Cellar/cmake/3.28.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Vdt (missing: VDT_INCLUDE_DIR VDT_LIBRARY)
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.28.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/opt/homebrew/Cellar/root/6.30.02/share/root/cmake/modules/FindVdt.cmake:63 (find_package_handle_standard_args)
/opt/homebrew/Cellar/cmake/3.28.0/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
/opt/homebrew/share/root/cmake/ROOTConfig.cmake:132 (find_dependency)
CMakeLists.txt:46 (find_package)
I did a google search and I find that this VDT package is included in root for a long time already, but previously I had no problems with my cmake. I can’t install VDT with homebrew, so I don’t really know how to fix this issue.
Any ideas?
My CMake file looks like this:
# find rat-models library
find_package(RatModels 2.016.3 REQUIRED)
# find_package(Vdt REQUIRED)
find_package(ROOT 6.30 REQUIRED)
include_directories(${ROOT_INCLUDE_DIRS})
# set the model
add_executable(magdem magdem.cpp)
target_link_libraries(magdem Rat::Models ${ROOT_LIBRARIES})
_ROOT Version: 6.30
_Platform: MacOS
_Compiler: HomeBrew / CMake