Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ add_library(cdeps_share ${GenF90_SRCS}

target_include_directories (cdeps_share PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${ESMF_F90COMPILEPATHS} ${PIO_Fortran_INCLUDE_DIRS})

if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
target_compile_definitions(cdeps_share PRIVATE "CPRGNU")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
target_compile_definitions(cdeps_share PRIVATE "CPRINTEL")
endif()

install(TARGETS cdeps_share
LIBRARY DESTINATION lib)
#===== genf90 =====
Expand Down