From 7f342e23810437b775e51124620194a3d2a8e7e6 Mon Sep 17 00:00:00 2001 From: Edwin Vollebregt Date: Wed, 3 Jul 2024 11:49:16 +0200 Subject: [PATCH] fix Fortran flags (names:lowercase) --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9db3d47..076c15a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)