diff --git a/Modules/CheckClassVersion.cmake b/Modules/CheckClassVersion.cmake index 38e14109..f818eef3 100644 --- a/Modules/CheckClassVersion.cmake +++ b/Modules/CheckClassVersion.cmake @@ -142,8 +142,8 @@ function(check_class_version) else() set(DY) endif() - string(JOIN ":" LD_PATH_FOR_DICT "${LD_PATH_FOR_DICT}" $ENV{${DY}LD_LIBRARY_PATH}) - list(APPEND CMD_ENV "${DY}LD_LIBRARY_PATH=${LD_PATH_FOR_DICT}") + string(JOIN ":" LD_PATH_FOR_DICT "${LD_PATH_FOR_DICT}" $ENV{ROOT_LIBRARY_PATH} $ENV{${DY}LD_LIBRARY_PATH}) + list(APPEND CMD_ENV "ROOT_LIBRARY_PATH=${LD_PATH_FOR_DICT}") list(APPEND CMD_ENV "ROOT_INCLUDE_PATH=$,:>") endif() # Add the check to the end of the dictionary building step.