[Avida-SVN] r1540 - development

brysonda at myxo.css.msu.edu brysonda at myxo.css.msu.edu
Fri May 11 07:48:52 PDT 2007


Author: brysonda
Date: 2007-05-11 10:48:52 -0400 (Fri, 11 May 2007)
New Revision: 1540

Modified:
   development/CMakeLists.txt
Log:
Initial stab at HPC compatibility in CMake build system.

Modified: development/CMakeLists.txt
===================================================================
--- development/CMakeLists.txt	2007-05-10 21:23:10 UTC (rev 1539)
+++ development/CMakeLists.txt	2007-05-11 14:48:52 UTC (rev 1540)
@@ -30,8 +30,13 @@
 # This section defines default builtin compiler options
 # ------------------------------------------------------------------------------
 IF(UNIX)
-  SET(COMPILER_WARNING_FLAGS "-Wextra -Wno-unknown-pragmas -Wconversion -Wno-trigraphs")
-  SET(COMPILER_OPTIMIZATION_FLAGS "-ffast-math -fno-rtti -funroll-loops -fstrict-aliasing -ftree-vectorize -fvisibility-inlines-hidden")
+  IF (CMAKE_CXX_COMPILER MATCHES ".*pathcc.*")
+    SET(COMPILER_WARNING_FLAGS "-Wextra -Wno-unknown-pragmas -Wconversion -Wno-trigraphs")
+    SET(COMPILER_OPTIMIZATION_FLAGS "-ffast-math -fno-rtti -funroll-loops -fstrict-aliasing")
+  ELSE (CMAKE_CXX_COMPILER MATCHES ".*pathcc.*")
+    SET(COMPILER_WARNING_FLAGS "-Wextra -Wno-unknown-pragmas -Wconversion -Wno-trigraphs")
+    SET(COMPILER_OPTIMIZATION_FLAGS "-ffast-math -fno-rtti -funroll-loops -fstrict-aliasing -ftree-vectorize -fvisibility-inlines-hidden")
+  ENDIF (CMAKE_CXX_COMPILER MATCHES ".*pathcc.*")
 
   # Four types of c++ compilations:
   # - debug (Debug)




More information about the Avida-cvs mailing list