You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+68-41Lines changed: 68 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -16,23 +16,30 @@ project(ALICEO2)
16
16
#ENABLE_LANGUAGE(Fortran)
17
17
18
18
# Check for needed environment variables
19
-
IF(NOTDEFINED ENV{FAIRROOTPATH})
20
-
MESSAGE(FATAL_ERROR"You did not define the environment variable FAIRROOTPATH which is needed to find FairRoot. Please set this variable and execute cmake again.")
21
-
ENDIF(NOTDEFINEDENV{FAIRROOTPATH})
22
-
23
-
IF(NOTDEFINED ENV{SIMPATH})
24
-
MESSAGE(FATAL_ERROR"You did not define the environment variable SIMPATH which is nedded to find the external packages. Please set this variable and execute cmake again.")
25
-
ENDIF(NOTDEFINEDENV{SIMPATH})
26
-
27
-
SET(SIMPATH $ENV{SIMPATH})
28
-
SET(FAIRROOTPATH $ENV{FAIRROOTPATH})
29
-
30
-
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/
#If not stop execution unless modular build is activated
20
+
Option(ALICEO2_MODULAR_BUILD"Modular build without environment variables"OFF)
21
+
if(NOT ALICEO2_MODULAR_BUILD)
22
+
IF(NOTDEFINED ENV{FAIRROOTPATH})
23
+
MESSAGE(FATAL_ERROR"You did not define the environment variable FAIRROOTPATH which is needed to find FairRoot. Please set this variable and execute cmake again.")
24
+
ENDIF(NOTDEFINEDENV{FAIRROOTPATH})
25
+
26
+
IF(NOTDEFINED ENV{SIMPATH})
27
+
MESSAGE(FATAL_ERROR"You did not define the environment variable SIMPATH which is nedded to find the external packages. Please set this variable and execute cmake again.")
28
+
ENDIF(NOTDEFINEDENV{SIMPATH})
29
+
30
+
SET(SIMPATH $ENV{SIMPATH})
31
+
SET(FAIRROOTPATH $ENV{FAIRROOTPATH})
32
+
33
+
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/
0 commit comments