CMake: Typo in DIMDIR variable
[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
cbd58b9c 9cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
6db31708 10
11#Retrieve Compiler Version
12
13
aaf73c40 14execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpversion
15 COMMAND cut -d. -f1
6db31708 16 OUTPUT_VARIABLE CCMAJORV
17 OUTPUT_STRIP_TRAILING_WHITESPACE)
aaf73c40 18execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpversion
19 COMMAND cut -d. -f2
6db31708 20 OUTPUT_VARIABLE CCMINORV
21 OUTPUT_STRIP_TRAILING_WHITESPACE)
22
23
24# Global Optimization
aecc2ba0 25set(OPT)
26# ------- Setting optimization flags for default configuration -------
27if((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
28 set(DEFAULT_CXX_FLAGS "-O -g")
29 set(OPT "${DEFAULT_CXX_FLAGS}")
30 message("-- Setting compiler flags for default configuration: ${DEFAULT_CXX_FLAGS}")
31endif((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
32# --------------------------------------------------------------------
6db31708 33set(NOOPT "-g -mieee -mno-soft-float")
34
35set(CXXOPT ${OPT})
36set(CXXNOPT ${NOOPT})
37set(COPT ${OPT})
38set(FOPT ${OPT})
39
40#CERNLIB defines
41set(CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ")
42set(CLIBCXXOPTS)
43set(CLIBCOPT)
44set(CLIBFOPT ${CLIBDEFS})
45
46set(CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")
47
48set(CXXFLAGS "${OPT} -fPIC -pipe")
49set(CXXFLAGSNO "${NOOPT} -fPIC -pipe")
50set(CFLAGS "${OPT} -Wall -fPIC -pipe -ansi")
51set(FFLAGS "${CLIBFOPT} ${FOPT} -Wall -fPIC -pipe -fno-second-underscore")
52
53set(SYSLIBS "-ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11")
54
55set(LDFLAGS "${OPT}")
86ec2a13 56set(SOFLAGS "${OPT} -Wall -fPIC -pipe -shared")
6db31708 57set(SHLIB "-lg2c")
58set(ALLIB)
59
60
61