Correction for bug #77355: Generation of PARs
[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 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 "-O -g -mieee -mno-soft-float")
24 set(NOOPT "-g -mieee -mno-soft-float")
25
26 set(CXXOPT ${OPT})
27 set(CXXNOPT ${NOOPT})
28 set(COPT ${OPT})
29 set(FOPT ${OPT})
30
31 #CERNLIB defines
32 set(CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ")
33 set(CLIBCXXOPTS)
34 set(CLIBCOPT)
35 set(CLIBFOPT ${CLIBDEFS})
36
37 set(CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")
38
39 set(CXXFLAGS "${OPT} -fPIC -pipe")
40 set(CXXFLAGSNO "${NOOPT} -fPIC -pipe")
41 set(CFLAGS      "${OPT} -Wall -fPIC -pipe -ansi")
42 set(FFLAGS "${CLIBFOPT} ${FOPT} -Wall -fPIC -pipe -fno-second-underscore")
43
44 set(SYSLIBS "-ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11")
45
46 set(LDFLAGS "${OPT}")
47 set(SOFLAGS "${OPT} -Wall -fPIC -pipe -shared -Wl")
48 set(SHLIB "-lg2c")
49 set(ALLIB)
50
51
52