Skip to content

Commit

Permalink
Finally figured out how to link the Fortran compiler when linking sta…
Browse files Browse the repository at this point in the history
…tic libraries
  • Loading branch information
cvanaret committed Dec 2, 2024
1 parent 1f53646 commit 36f62bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ file(GLOB UNO_SOURCE_FILES
uno/ingredients/globalization_strategies/switching_methods/funnel_methods/*.cpp
uno/ingredients/hessian_models/*.cpp
uno/ingredients/local_models/*.cpp
uno/ingredients/inequality_handling_methods/*.cpp
uno/ingredients/inequality_handling_methods/inequality_constrained_methods/*.cpp
uno/ingredients/inequality_handling_methods/interior_point_methods/*.cpp
uno/ingredients/inequality_handling_methods/*.cpp
uno/ingredients/inequality_handling_methods/inequality_constrained_methods/*.cpp
uno/ingredients/inequality_handling_methods/interior_point_methods/*.cpp
uno/model/*.cpp
uno/optimization/*.cpp
uno/options/*.cpp
Expand Down Expand Up @@ -208,7 +208,7 @@ 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})
target_link_libraries(uno PUBLIC ${LIBRARIES} ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES})

This comment has been minimized.

Copy link
@worc4021

worc4021 Dec 2, 2024

Contributor

Ah yes! Looks obvious doesn't it :D

This comment has been minimized.

Copy link
@cvanaret

cvanaret Dec 2, 2024

Author Owner

I'm so frickin' happy it's now working!


######################
# optional AMPL main #
Expand Down

0 comments on commit 36f62bc

Please sign in to comment.