mirror of
https://github.com/JHUAPL/kaiju.git
synced 2026-01-09 15:17:56 -05:00
Specifying fixed compilation only for specific files in rcm. All other files are freeeeee
This commit is contained in:
@@ -30,8 +30,7 @@ set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-O3 -g")
|
||||
|
||||
#Do compiler specific options
|
||||
if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
|
||||
#set(dialect "-free -implicitnone")
|
||||
set(dialect "-implicitnone")
|
||||
set(dialect "-free -implicitnone")
|
||||
#Base
|
||||
string(APPEND CMAKE_Fortran_FLAGS " -fPIC")
|
||||
#Production
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
file(GLOB rcm_srcs *.f90 *.F)
|
||||
add_library(rcmlib ${rcm_srcs})
|
||||
file(GLOB rcm_srcs_f90 *.f90)
|
||||
file(GLOB rcm_srcs_f *.F)
|
||||
set_source_files_properties(${rcm_srcs_f} PROPERTIES COMPILE_FLAGS "-fixed")
|
||||
add_library(rcmlib ${rcm_srcs_f90} ${rcm_srcs_f})
|
||||
target_link_libraries(rcmlib baselib)
|
||||
|
||||
Reference in New Issue
Block a user