Skip to content

Commit

Permalink
[Windows] error if $ROOTSYS environment variable undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Feb 14, 2022
1 parent d0e11da commit 071f2af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/FindROOT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
if (CMAKE_SYSTEM_NAME MATCHES "Windows")

if(DEFINED ENV{ROOTSYS})
set(ROOTSYS $ENV{ROOTSYS})
set(ROOTSYS $ENV{ROOTSYS})
else()
message(FATAL_ERROR "ROOTSYS environment variable is undefined. Did you forget to source the `thisroot.bat`?")
endif()

if(NOT ROOTSYS)
Expand Down

0 comments on commit 071f2af

Please sign in to comment.