From 6d15be9a32989b0d00312a5b2589e36ba0ea7836 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 4 Mar 2018 18:29:13 +0100 Subject: [PATCH] Fix cmake error when -DBUILD_SHARED_LIBS=ON Fixes "CMake Error: TARGETS given no LIBRARY DESTINATION for shared library target" by adding LIBRARY parameter to INSTALL call Signed-off-by: Fabrice Fontaine --- build/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 4f875b33..a1c8957b 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -97,6 +97,7 @@ set_target_properties(libi2pd PROPERTIES PREFIX "") install(TARGETS libi2pd EXPORT libi2pd ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib COMPONENT Libraries) # TODO Make libi2pd available to 3rd party projects via CMake as imported target # FIXME This pulls stdafx -- 2.14.1