From 6057d493435e02d1a9d305c45387312dcde49554 Mon Sep 17 00:00:00 2001 From: "Lars T. Kyllingstad" Date: Wed, 8 Nov 2023 15:50:25 +0100 Subject: [PATCH] Link test project to libdl --- test_package/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_package/CMakeLists.txt b/test_package/CMakeLists.txt index 61e39fb..19bb27a 100644 --- a/test_package/CMakeLists.txt +++ b/test_package/CMakeLists.txt @@ -4,4 +4,4 @@ project(PackageTest CXX) find_package(fmilibrary CONFIG REQUIRED) add_executable(test test.cpp) -target_link_libraries(test fmilibrary::fmilibrary) +target_link_libraries(test fmilibrary::fmilibrary ${CMAKE_DL_LIBS})