Skip to content

Commit

Permalink
Removed deprecation warnings from fortran build
Browse files Browse the repository at this point in the history
  • Loading branch information
rainman110 committed Jul 23, 2020
1 parent cb6deef commit 14cb5ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bindings/fortran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ else()
if(${CMAKE_Fortran_COMPILER} MATCHES "gfortran")
message(STATUS "Generating fortran interface for gfortran naming scheme.")
add_definitions(-DGFORTRAN)
set(CMAKE_Fortran_FLAGS ${CMAKE_Fortran_FLAGS} "-Wno-deprecated-declarations")
elseif(${CMAKE_Fortran_COMPILER} MATCHES "g77")
message(STATUS "Generating fortran interface for g77 naming scheme.")
add_definitions(-DG77)
Expand All @@ -31,6 +32,10 @@ else()
endif()
endif()

if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-Wno-deprecated-declarations")
endif()

add_library(${TIXI_LIB_NAME}-f90 STATIC ${TIXI_F_SRC} ${TIXI_F_HDR})
target_link_libraries(${TIXI_LIB_NAME}-f90 ${TIXI_LIB_NAME})
set_target_properties(${TIXI_LIB_NAME}-f90 PROPERTIES VERSION ${TIXI_VERSION})
Expand Down

0 comments on commit 14cb5ad

Please sign in to comment.