Skip to content

Commit

Permalink
fix Fortran flags (names:lowercase)
Browse files Browse the repository at this point in the history
  • Loading branch information
eve70a committed Jul 3, 2024
1 parent 5bf6a5f commit 7f342e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ endif()
# Apply G+Smo config
include(gsConfig)

set(CMAKE_Fortran_FLAGS ${CMAKE_Fortran_FLAGS} "/names:lowercase")
#set(CMAKE_Fortran_FLAGS ${CMAKE_Fortran_FLAGS} "-names lowercase")
if ( CMAKE_SYSTEM_NAME MATCHES "Linux" )
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -names lowercase")
elseif ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} /names:lowercase")
endif()

## Collect files
aux_header_directory(${CMAKE_CURRENT_SOURCE_DIR}/src ${PROJECT_NAME}_H)
Expand Down

0 comments on commit 7f342e2

Please sign in to comment.