Test for Coverity
[u/mrichter/AliRoot.git] / cmake / CMakelinuxia64gcc.cmake
CommitLineData
6db31708 1#--------------------------------------------------------------------------------#
2# Linuxx8664gcc CMake System configuration file for the AliRoot Build System #
3# #
4# Author: Johny Jose (johny.jose@cern.ch) #
5# #
6#--------------------------------------------------------------------------------#
7
8
6b06712c 9cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR)
6db31708 10
11#Retrieve Compiler Version
12
13
14execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpversion | cut -d. -f1
15 OUTPUT_VARIABLE CCMAJORV
16 OUTPUT_STRIP_TRAILING_WHITESPACE)
17execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpversion | cut -d. -f2
18 OUTPUT_VARIABLE CCMINORV
19 OUTPUT_STRIP_TRAILING_WHITESPACE)
20
21
22# Global Optimization
aecc2ba0 23set(OPT)
24# ------- Setting optimization flags for default configuration -------
25if((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
26 set(DEFAULT_CXX_FLAGS "-O -g")
27 set(OPT "${DEFAULT_CXX_FLAGS}")
28 message("-- Setting compiler flags for default configuration: ${DEFAULT_CXX_FLAGS}")
29endif((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
30# --------------------------------------------------------------------
6db31708 31set(NOOPT "-g -mieee -mno-soft-float")
32
33set(CXXOPT ${OPT})
34set(CXXNOPT ${NOOPT})
35set(COPT ${OPT})
36set(FOPT ${OPT})
37
38#CERNLIB defines
39set(CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ")
40set(CLIBCXXOPTS)
41set(CLIBCOPT)
42set(CLIBFOPT ${CLIBDEFS})
43
44set(CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")
45
46set(CXXFLAGS "${OPT} -fPIC -pipe")
47set(CXXFLAGSNO "${NOOPT} -fPIC -pipe")
48set(CFLAGS "${OPT} -Wall -fPIC -pipe -ansi")
49set(FFLAGS "${CLIBFOPT} ${FOPT} -Wall -fPIC -pipe -fno-second-underscore")
50
51set(SYSLIBS "-ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11")
52
53set(LDFLAGS "${OPT}")
54set(SOFLAGS "${OPT} -Wall -fPIC -pipe -shared -Wl")
55set(SHLIB "-lg2c")
56set(ALLIB)
57
58
59