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