Skip to content

Commit

Permalink
Ensure that libdl is listed as a dependency of fmilib::shared
Browse files Browse the repository at this point in the history
  • Loading branch information
kyllingstad committed Nov 20, 2023
1 parent 0b9dc6f commit 1ac2872
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/FindFMILibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ if (FMILibrary_SHARED_LIBRARY)
add_library ("fmilib::shared" SHARED IMPORTED)
set_target_properties ("fmilib::shared" PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
IMPORTED_LINK_INTERFACE_LIBRARIES "${CMAKE_DL_LIBS}"
INTERFACE_INCLUDE_DIRECTORIES "${FMILibrary_INCLUDE_DIRS}")
if (WIN32)
set_target_properties ("fmilib::shared" PROPERTIES
Expand Down

0 comments on commit 1ac2872

Please sign in to comment.