Changeset 3022


Ignore:
Timestamp:
02/06/15 13:40:20 (10 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): asap (built by CMake)

Description: Introduced a build flag that defines complex mul/div rule in fortran style.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r3014 r3022  
    8484set( DEFAULT_CXX_FLAGS
    8585     "-pipe -Wall -Wextra -Wno-non-template-friend -Wcast-align -Wno-comment" )
     86
     87# additional flag for fortran complex div/mul rules.
     88include( CheckCXXCompilerFlag )
     89include( CheckCCompilerFlag )
     90check_cxx_compiler_flag( -fcx-fortran-rules HAS_GXX_FORTRAN_RULES )
     91check_c_compiler_flag( -fcx-fortran-rules HAS_GCC_FORTRAN_RULES )
     92if( HAS_GXX_FORTRAN_RULES )
     93     set( DEFAULT_CXX_FLAGS "-fcx-fortran-rules ${DEFAULT_CXX_FLAGS}")
     94endif()
     95if( HAS_GCC_FORTRAN_RULES )
     96     set( CMAKE_C_FLAGS "-fcx-fortran-rules ${CMAKE_C_FLAGS}" )
     97endif()
    8698
    8799find_package( OpenMP )
Note: See TracChangeset for help on using the changeset viewer.