diff --git a/CMakeLists.txt b/CMakeLists.txt index 4957b2a5..69a446cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -208,7 +208,10 @@ endif() add_library(uno STATIC ${UNO_SOURCE_FILES}) set_property(TARGET uno PROPERTY POSITION_INDEPENDENT_CODE ON) target_include_directories(uno PUBLIC ${DIRECTORIES}) -target_link_libraries(uno PUBLIC ${LIBRARIES} ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}) +target_link_libraries(uno PUBLIC ${LIBRARIES} + # link Fortran compiler even when static libraries are linked + ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES} +) ###################### # optional AMPL main #