File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,9 @@ if(BUILD_INDEX64_EXT_API)
124
124
#Add _64 suffix to all Fortran functions via macros
125
125
foreach (F IN LISTS SOURCES_64_F )
126
126
if (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG" )
127
- set ( COPT_64_F -fpp )
127
+ set_source_files_properties ( ${F} PROPERTIES COMPILE_FLAGS " -fpp" )
128
128
else ()
129
- set ( COPT_64_F -cpp )
129
+ set_source_files_properties ( ${F} PROPERTIES COMPILE_FLAGS " -cpp" )
130
130
endif ()
131
131
file (STRINGS ${F} ${F} .lst )
132
132
list (FILTER ${F} .lst INCLUDE REGEX "subroutine|SUBROUTINE|external|EXTERNAL|function|FUNCTION" )
@@ -137,10 +137,10 @@ if(BUILD_INDEX64_EXT_API)
137
137
string (REGEX REPLACE "^[a-zA-Z0-9_ *]*(subroutine|SUBROUTINE|external|EXTERNAL|function|FUNCTION)[ ]*[*]?" "" FUNC ${FUNC} )
138
138
string (REGEX REPLACE "[(][a-zA-Z0-9_, )]*$" "" FUNC ${FUNC} )
139
139
string (STRIP ${FUNC} FUNC )
140
- list (APPEND COPT_64_F "-D ${FUNC} =${FUNC} _64" )
140
+ list (APPEND COPT_64_F "${FUNC} =${FUNC} _64" )
141
141
endforeach ()
142
142
list (REMOVE_DUPLICATES COPT_64_F )
143
- set_source_files_properties (${F} PROPERTIES COMPILE_OPTIONS "${COPT_64_F} " )
143
+ set_source_files_properties (${F} PROPERTIES COMPILE_DEFINITIONS "${COPT_64_F} " )
144
144
endforeach ()
145
145
endif ()
146
146
You can’t perform that action at this time.
0 commit comments