Skip to content

Commit 2ad19ec

Browse files
Benedikt Volkelbenedikt-voelkel
authored andcommitted
Fallback to ROOT without VMC standalone
1 parent 4f0682c commit 2ad19ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ include(${ROOT_USE_FILE})
6868
#######
6969
# VMC #
7070
#######
71-
find_package(VMC CONFIG REQUIRED)
71+
find_package(VMC CONFIG)
72+
if(NOT VMC_FOUND)
73+
if(NOT ROOT_vmc_FOUND)
74+
message(FATAL_ERROR "Could neither find VMC standalone nor ROOT's builtin")
75+
endif()
76+
add_library(VMCLibrary ALIAS ROOT::VMC)
77+
endif()
7278

7379
#########
7480
# Boost #

0 commit comments

Comments
 (0)