Skip to content

Commit 0acfebe

Browse files
��Fix for user specifying �CMAKE_Fortran_FLAGS
If the CMAKE_Fortran_FLAGS is already set then we were getting an additional ; in the flags This fixes the issue.
1 parent 8daa971 commit 0acfebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ message(STATUS "Link with: ${NAPI_LINK_LIBS}")
193193
if(ENABLE_FORTRAN90 OR ENABLE_FORTRAN77)
194194
enable_language(Fortran)
195195

196-
set(CMAKE_Fortran_FLAGS ${CMAKE_Fortran_FLAGS} "-Wall -fbacktrace -pedantic -fcheck=all -Wextra")
196+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Wall -fbacktrace -pedantic -fcheck=all -Wextra")
197197
message(STATUS ${CMAKE_Fortran_FLAGS})
198198
endif()
199199

0 commit comments

Comments
 (0)