File mcut-install-lib.patch of Package mcut
From d29d331e0bd397c442589474d8abfb2ad978667c Mon Sep 17 00:00:00 2001
From: Trevor Kuhlengel <trevor.kuhlengel@x-navtech.com>
Date: Thu, 11 Jan 2024 14:51:03 -0500
Subject: [PATCH] #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 2664fc3..5c86736 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -260,18 +260,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()
--
2.49.0