From 686c773bb29c151a50adca6ebad2baf4cf0cc3da Mon Sep 17 00:00:00 2001 From: Claus Klein Date: Mon, 31 Jul 2023 08:03:23 +0200 Subject: [PATCH] Build and test shared libs --- CMakePresets.json | 4 ++-- test/CMakePresets.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 2e2092e..d45c240 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -21,10 +21,10 @@ "CMAKE_CXX_STANDARD": "20", "CMAKE_BUILD_TYPE": "Release", "CMAKE_DEBUG_POSTFIX": "D", - "BUILD_SHARED_LIBS": "NO" + "BUILD_SHARED_LIBS": "YES" }, "environment": { - "CPM_USE_LOCAL_PACKAGES": "YES", + "CPM_USE_LOCAL_PACKAGES": "NO", "PATH": "$env{HOME}/.local/bin${pathListSep}$penv{PATH}" }, "warnings": { diff --git a/test/CMakePresets.json b/test/CMakePresets.json index f68b744..65fd0d4 100644 --- a/test/CMakePresets.json +++ b/test/CMakePresets.json @@ -27,7 +27,8 @@ }, "environment": { "CPM_USE_LOCAL_PACKAGES": "YES", - "PATH": "$env{HOME}/.local/bin${pathListSep}$penv{PATH}" + "PATH": "$env{HOME}/.local/bin${pathListSep}$penv{PATH}", + "LD_LIBRARY_PATH": "${sourceParentDir}/stagedir/lib${pathListSep}penv{LD_LIBRARY_PATH}" } }, {