Skip to content

Commit

Permalink
names lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
filiatra committed Jul 3, 2024
1 parent ebccb7a commit 5bf6a5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@
##
######################################################################

project(gsCInterface LANGUAGES C)
project(gsCInterface LANGUAGES CXX)

include(CheckLanguage)
check_language(Fortran)
if(CMAKE_Fortran_COMPILER)
enable_language(Fortran)
include(FortranCInterface)
FortranCInterface_VERIFY(CXX)
else()
message(STATUS "No Fortran support")
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")

## Collect files
aux_header_directory(${CMAKE_CURRENT_SOURCE_DIR}/src ${PROJECT_NAME}_H)
aux_cpp_directory (${CMAKE_CURRENT_SOURCE_DIR}/src ${PROJECT_NAME}_CPP)
Expand All @@ -37,7 +42,7 @@ add_library(${PROJECT_NAME} OBJECT
set_target_properties(${PROJECT_NAME} PROPERTIES
COMPILE_DEFINITIONS gismo_EXPORTS
POSITION_INDEPENDENT_CODE ON
LINKER_LANGUAGE C
#LINKER_LANGUAGE C
FOLDER "G+Smo modules" )

set(gismo_MODULES ${gismo_MODULES} $<TARGET_OBJECTS:${PROJECT_NAME}>
Expand Down

0 comments on commit 5bf6a5f

Please sign in to comment.