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)
124124 #Add _64 suffix to all Fortran functions via macros
125125 foreach (F IN LISTS SOURCES_64_F)
126126 if (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG" )
127- set (COPT_64_F -fpp)
127+ set_source_files_properties ( ${F} PROPERTIES COMPILE_FLAGS " -fpp" )
128128 else ()
129- set (COPT_64_F -cpp)
129+ set_source_files_properties ( ${F} PROPERTIES COMPILE_FLAGS " -cpp" )
130130 endif ()
131131 file (STRINGS ${F} ${F} .lst)
132132 list (FILTER ${F} .lst INCLUDE REGEX "subroutine|SUBROUTINE|external|EXTERNAL|function|FUNCTION" )
@@ -137,10 +137,10 @@ if(BUILD_INDEX64_EXT_API)
137137 string (REGEX REPLACE "^[a-zA-Z0-9_ *]*(subroutine|SUBROUTINE|external|EXTERNAL|function|FUNCTION)[ ]*[*]?" "" FUNC ${FUNC} )
138138 string (REGEX REPLACE "[(][a-zA-Z0-9_, )]*$" "" FUNC ${FUNC} )
139139 string (STRIP ${FUNC} FUNC)
140- list (APPEND COPT_64_F "-D ${FUNC} =${FUNC} _64" )
140+ list (APPEND COPT_64_F "${FUNC} =${FUNC} _64" )
141141 endforeach ()
142142 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} " )
144144 endforeach ()
145145endif ()
146146
You can’t perform that action at this time.
0 commit comments