Skip to content

Commit 34ca7e6

Browse files
ChristianTackeGSIdennisklein
authored andcommitted
Remove CheckCXX11Features Usage
FairRoot depends on a C++11 compiler. This is fully declared and enforced using CMake native tooling. CheckCXX11Features is not used at all any more. So remove all of its usage in CMakeLists.txt. Also remove it from the templates.
1 parent c8c7823 commit 34ca7e6

3 files changed

Lines changed: 0 additions & 29 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ endif()
8585

8686
SET(VMCWORKDIR ${CMAKE_SOURCE_DIR}/examples)
8787

88-
# Check if the compiler support specific C++11 features
89-
# Up to now this is only a check since the code does not use
90-
# any of the features of the new standard
91-
Set(CheckSrcDir "${CMAKE_SOURCE_DIR}/cmake/checks")
92-
include(CheckCXX11Features)
9388
include(CheckSymbolExists)
9489

9590
# Load some basic macros which are needed later on

templates/project_root_containers/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ SET(FAIRROOTPATH $ENV{FAIRROOTPATH})
3434
set(CMAKE_MODULE_PATH "${FAIRROOTPATH}/share/fairbase/cmake/modules_old" ${CMAKE_MODULE_PATH})
3535
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
3636

37-
Set(CheckSrcDir "${FAIRROOTPATH}/share/fairbase/cmake/checks")
38-
3937
find_package(FairRoot)
4038

4139
# Load some basic macros which are needed later on
@@ -177,16 +175,6 @@ SET(_LIBDIR ${CMAKE_BINARY_DIR}/lib)
177175
SET(LD_LIBRARY_PATH ${_LIBDIR} ${LD_LIBRARY_PATH})
178176

179177

180-
181-
# Check if the compiler support specific C++11 features
182-
# Up to now this is only a check since the code does not use
183-
# any of the features of the new standard
184-
include(CheckCXX11Features)
185-
186-
IF(HAS_CXX11_SHAREDPOINTER)
187-
Add_Definitions(-DHAS_SHAREDPOINTER)
188-
ENDIF(HAS_CXX11_SHAREDPOINTER)
189-
190178
# Recurse into the given subdirectories. This does not actually
191179
# cause another cmake executable to run. The same process will walk through
192180
# the project's entire directory structure.

templates/project_stl_containers/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ SET(FAIRROOTPATH $ENV{FAIRROOTPATH})
3434
set(CMAKE_MODULE_PATH "${FAIRROOTPATH}/share/fairbase/cmake/modules_old" ${CMAKE_MODULE_PATH})
3535
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
3636

37-
Set(CheckSrcDir "${FAIRROOTPATH}/share/fairbase/cmake/checks")
38-
3937
find_package(FairRoot)
4038

4139
# Load some basic macros which are needed later on
@@ -177,16 +175,6 @@ SET(_LIBDIR ${CMAKE_BINARY_DIR}/lib)
177175
SET(LD_LIBRARY_PATH ${_LIBDIR} ${LD_LIBRARY_PATH})
178176

179177

180-
181-
# Check if the compiler support specific C++11 features
182-
# Up to now this is only a check since the code does not use
183-
# any of the features of the new standard
184-
include(CheckCXX11Features)
185-
186-
IF(HAS_CXX11_SHAREDPOINTER)
187-
Add_Definitions(-DHAS_SHAREDPOINTER)
188-
ENDIF(HAS_CXX11_SHAREDPOINTER)
189-
190178
# Recurse into the given subdirectories. This does not actually
191179
# cause another cmake executable to run. The same process will walk through
192180
# the project's entire directory structure.

0 commit comments

Comments
 (0)