-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cmake-cache-source-compilation-tests
- Loading branch information
Showing
30 changed files
with
428 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
if (CMAKE_Fortran_COMPILER_ID MATCHES Fujitsu) | ||
if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 4.10.0) | ||
message(FATAL_ERROR "${CMAKE_Fortran_COMPILER_ID} version must be at least 4.10.0!") | ||
endif () | ||
endif () | ||
|
||
# Compiler specific flags for Fujitsu Fortran compiler | ||
|
||
set(check_all "-Nquickdbg") | ||
set(cpp "-Cfpp") | ||
|
||
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 ${check_all}") | ||
set(CMAKE_Fortran_FLAGS_RELEASE "-O3") | ||
set(CMAKE_Fortran_FLAGS "-g ${cpp} -Nalloc_assign -Free") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Compiler specific flags for Intel Fortran compiler | ||
|
||
if(WIN32) | ||
set(no_optimize "-Od") | ||
set(check_all "-check:all") | ||
set(cpp "-fpp") | ||
set(save-temps "-Qsave-temps") | ||
set(disable_warning_for_long_names "-Qdiag-disable:5462") | ||
else() | ||
set(no_optimize "-O0") | ||
set(check_all "-check all,nouninit") | ||
set(cpp "-cpp") | ||
set(save-temps "-save-temps") | ||
set(disable_warning_for_long_names "-diag-disable 5462") | ||
endif() | ||
|
||
set(traceback "-traceback") | ||
|
||
set(CMAKE_Fortran_Flags_ALL "${cpp} ${disable_warning_for_long_names}") | ||
set(CMAKE_Fortran_FLAGS_DEBUG "${no_optimize} ${check_all} ${save-temps} ${CMAKE_Fortran_Flags_ALL}") | ||
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 ${CMAKE_Fortran_Flags_ALL}") | ||
|
||
add_definitions(-D_INTEL) | ||
add_definitions(-D__ifort_18) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.