Fix for #95085 DAs don't compile with 5.33.02b
[u/mrichter/AliRoot.git] / cmake / CMakewin32gcc.cmake
CommitLineData
03d1e24f 1#--------------------------------------------------------------------------------#
2# Package File for #
3# Author : Johny Jose (johny.jose@cern.ch) #
4# Variables Defined : #
5# #
6# SRCS - C++ source files #
7# HDRS - C++ header files #
8# DHDR - ROOT Dictionary Linkdef header file #
9# CSRCS - C source files #
10# CHDRS - C header files #
11# EINCLUDE - Include directories #
12# EDEFINE - Compiler definitions #
13# ELIBS - Extra libraries to link #
14# ELIBSDIR - Extra library directories #
15# PACKFFLAGS - Fortran compiler flags for package #
16# PACKCXXFLAGS - C++ compiler flags for package #
17# PACKCFLAGS - C compiler flags for package #
18# PACKSOFLAGS - Shared library linking flags #
19# PACKLDFLAGS - Module linker flags #
20# PACKBLIBS - Libraries to link (Executables only) #
21# EXPORT - Header files to be exported #
22# CINTHDRS - Dictionary header files #
23# CINTAUTOLINK - Set automatic dictionary generation #
24# ARLIBS - Archive Libraries and objects for linking (Executables only) #
25# SHLIBS - Shared Libraries and objects for linking (Executables only) #
26#--------------------------------------------------------------------------------#
27
aecc2ba0 28# Global Optimization
29set ( OPT )
30# ------- Setting optimization flags for default configuration -------
31if((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
32 set(DEFAULT_CXX_FLAGS "-O -g")
33 set(OPT "${DEFAULT_CXX_FLAGS}")
34 message("-- Setting compiler flags for default configuration: ${DEFAULT_CXX_FLAGS}")
35endif((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
36# --------------------------------------------------------------------
37
03d1e24f 38set ( NOOPT "-g")
39
40set ( CXXOPT ${OPT})
41set ( CXXNOOPT ${NOOPT})
42set ( COPT ${OPT})
43set ( FOPT ${OPT})
44
45set ( CLIBDEFS "-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ")
46set ( CLIBCXXOPTS )
47set ( CLIBCOPT )
48set ( CLIBFOPT ${CLIBDEFS})
49
50set ( CXXFLAGS "${OPT} -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL")
51set ( CXXFLAGSNO "${NOOPT} -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL")
52set ( CFLAGS "${OPT} -Wall -D_DLL")
53set ( FFLAGS "${CLIBFOPT} ${FOPT} -fno-second-underscore")
54
55set ( CINTFLAGS )
56
57set ( LDFLAGS ${OPT})
58
59set ( SOFLAGS "${OPT} -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc")
60
61set ( SHLIB ${ROOTLIBS} -lg2c)
62
63set ( ALLIB )
64
65set ( SYSLIBS "-ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11")