Additional patch for #83850: Please consider deprecating CINTAUTOLINK (Christian)
[u/mrichter/AliRoot.git] / cmake / CMakelinuxia64gcc.cmake
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
9 cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR)
10
11 #Retrieve Compiler Version
12
13
14 execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpversion | cut -d. -f1 
15                  OUTPUT_VARIABLE CCMAJORV
16                  OUTPUT_STRIP_TRAILING_WHITESPACE) 
17 execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpversion | cut -d. -f2
18                  OUTPUT_VARIABLE CCMINORV
19                  OUTPUT_STRIP_TRAILING_WHITESPACE)
20
21
22 # Global Optimization
23 set(OPT)
24 # ------- Setting optimization flags for default configuration -------
25 if((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}")
29 endif((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
30 # --------------------------------------------------------------------
31 set(NOOPT "-g -mieee -mno-soft-float")
32
33 set(CXXOPT ${OPT})
34 set(CXXNOPT ${NOOPT})
35 set(COPT ${OPT})
36 set(FOPT ${OPT})
37
38 #CERNLIB defines
39 set(CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ")
40 set(CLIBCXXOPTS)
41 set(CLIBCOPT)
42 set(CLIBFOPT ${CLIBDEFS})
43
44 set(CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")
45
46 set(CXXFLAGS "${OPT} -fPIC -pipe")
47 set(CXXFLAGSNO "${NOOPT} -fPIC -pipe")
48 set(CFLAGS      "${OPT} -Wall -fPIC -pipe -ansi")
49 set(FFLAGS "${CLIBFOPT} ${FOPT} -Wall -fPIC -pipe -fno-second-underscore")
50
51 set(SYSLIBS "-ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11")
52
53 set(LDFLAGS "${OPT}")
54 set(SOFLAGS "${OPT} -Wall -fPIC -pipe -shared -Wl")
55 set(SHLIB "-lg2c")
56 set(ALLIB)
57
58
59