Skip to content

Commit 25bd3f5

Browse files
kresanMohammadAlTurany
authored andcommitted
Add loading of policies macro in templates
1 parent cdb0aa2 commit 25bd3f5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

templates/project_root_containers/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ SET(FAIRROOTPATH $ENV{FAIRROOTPATH})
3636

3737
Set(CheckSrcDir "${FAIRROOTPATH}/share/fairbase/cmake/checks")
3838

39+
# set cmake policies
40+
include(FairRootCmakePolicies)
41+
set_fairroot_cmake_policies()
42+
3943
find_package(FairRoot)
4044

4145
# Load some basic macros which are needed later on
@@ -45,8 +49,6 @@ include(CTest)
4549
include(CheckCompiler)
4650
#include(CheckFortran)
4751

48-
set_fairroot_cmake_policies()
49-
5052
#Check the compiler and set the compile and link flags
5153
If(NOT CMAKE_BUILD_TYPE)
5254
Message("Set BuildType DEBUG")

templates/project_stl_containers/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ SET(FAIRROOTPATH $ENV{FAIRROOTPATH})
3636

3737
Set(CheckSrcDir "${FAIRROOTPATH}/share/fairbase/cmake/checks")
3838

39+
# set cmake policies
40+
include(FairRootCmakePolicies)
41+
set_fairroot_cmake_policies()
42+
3943
find_package(FairRoot)
4044

4145
# Load some basic macros which are needed later on
@@ -45,8 +49,6 @@ include(CTest)
4549
include(CheckCompiler)
4650
#include(CheckFortran)
4751

48-
set_fairroot_cmake_policies()
49-
5052
#Check the compiler and set the compile and link flags
5153
If(NOT CMAKE_BUILD_TYPE)
5254
Message("Set BuildType DEBUG")

0 commit comments

Comments
 (0)