Skip to content

Commit

Permalink
Fix cmake error when -DBUILD_SHARED_LIBS=ON
Browse files Browse the repository at this point in the history
Fixes "CMake Error: TARGETS given no LIBRARY DESTINATION for shared
library target" by adding LIBRARY parameter to INSTALL call

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  • Loading branch information
ffontaine committed Mar 4, 2018
1 parent aef0f4d commit 6d15be9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/CMakeLists.txt
Expand Up @@ -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
Expand Down

0 comments on commit 6d15be9

Please sign in to comment.