Skip to content
Snippets Groups Projects
Unverified Commit b966a24f authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

Compile geom/geom with -O2 with GCC 4.x

GCC 4.x has bugs with -O3/-Ofast that break TGeo.
parent dbfee279
No related branches found
No related tags found
No related merge requests found
......@@ -23,3 +23,8 @@ set(headers2 TGeoPatternFinder.h TGeoCache.h TVirtualMagField.h
ROOT_STANDARD_LIBRARY_PACKAGE(Geom
HEADERS ${headers1} ${headers2}
DEPENDENCIES Thread RIO MathCore)
# GCC 4.x has bugs with -O3 or -Ofast that break Geom
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5)
target_compile_options(Geom -O2)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment