From cd55fe9568c3534001aeed7ae62b16baad6b5c06 Mon Sep 17 00:00:00 2001 From: Trevor Kuhlengel Date: Thu, 11 Jan 2024 14:51:03 -0500 Subject: [PATCH 1/2] #39 CMake replacing missing variable with the correct target name variable. Verified to work with CMake version 3.21. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13852a2..08f2a9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -310,18 +310,18 @@ if(MCUT_BUILD_AS_SHARED_LIB) # dynamic libs # - install(TARGETS ${mpn_shared_lib_name} + install(TARGETS ${target_name} LIBRARY - DESTINATION lib/shared + DESTINATION bin/ COMPONENT dynamic_libraries) else() # # static libs # - install(TARGETS ${mpn_static_lib_name} + install(TARGETS ${target_name} ARCHIVE - DESTINATION lib/static + DESTINATION lib/ COMPONENT static_libraries) endif() From a5a7a163120157423331bedf6104e583ffba8278 Mon Sep 17 00:00:00 2001 From: Trevor Kuhlengel Date: Fri, 2 Feb 2024 15:16:02 -0500 Subject: [PATCH 2/2] Update CMakeLists.txt Moving the install directory for the shared library to the lib/ folder. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08f2a9e..11b5ac0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,7 +312,7 @@ if(MCUT_BUILD_AS_SHARED_LIB) install(TARGETS ${target_name} LIBRARY - DESTINATION bin/ + DESTINATION lib/ COMPONENT dynamic_libraries) else() # @@ -422,4 +422,4 @@ set (CPACK_STRIP_FILES TRUE) include(CPack) -# eof \ No newline at end of file +# eof