remove the -ansi flag and prevent install dir to equal build dir but allowing them...
authorrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Oct 2013 09:54:50 +0000 (09:54 +0000)
committerrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Oct 2013 09:54:50 +0000 (09:54 +0000)
CMakeLists.txt
cmake/CMakelinuxx8664gcc.cmake

index 8e766d4..e656789 100644 (file)
@@ -18,9 +18,9 @@ project(AliRoot CXX C Fortran)
 set(ALICE_ROOT $ENV{ALICE_ROOT})
 set(ALICE $ENV{ALICE})
 set(ALICE_INSTALL $ENV{ALICE_INSTALL})
-if(${ALICE_INSTALL} MATCHES ${CMAKE_BINARY_DIR})
+if(${ALICE_INSTALL} STREQUAL ${CMAKE_BINARY_DIR})
   message(FATAL_ERROR "Install dir should be different from build dir")
-endif(${ALICE_INSTALL} MATCHES ${CMAKE_BINARY_DIR})
+endif()
 # Environment for SHUTTLE
 set(DIMDIR $ENV{DIMDIR})
 set(ODIR $ENV{ODIR})
index c1f0e28..3662d4a 100644 (file)
@@ -50,7 +50,7 @@ set(CLIBCXXOPTS)
 set(CLIBCOPT)
 set(CLIBFOPT ${CLIBDEFS})
 
-set(CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")
+set(CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual")
 
 if(CCMAJORV STREQUAL "2")
 
@@ -77,7 +77,7 @@ else ()
 
 endif(CCMAJORV STREQUAL "2")
 
-set(CFLAGS     "${OPT} -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi")
+set(CFLAGS     "${OPT} -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors")
 set(FFLAGS "${CLIBFOPT} ${FOPT} -fPIC -fno-second-underscore -fPIC -fno-f2c")
 
 execute_process(COMMAND find /lib64 -name 'libNoVersion*.so'