Skip to content

Commit 4e7678a

Browse files
podsvirovjohnbartholomew
authored andcommitted
Install RUNTIME files of shared libraries
The DLL part of a shared library is treated as a RUNTIME target for DLL platforms (all Windows-based systems including Cygwin).
1 parent a4aeb1d commit 4e7678a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ set_target_properties(libjsonnet PROPERTIES OUTPUT_NAME jsonnet
4545
SOVERSION "0"
4646
PUBLIC_HEADER "${LIB_HEADER}")
4747
install(TARGETS libjsonnet
48+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
4849
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
4950
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
5051
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")

cpp/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set_target_properties(libjsonnet++ PROPERTIES OUTPUT_NAME jsonnet++
1919
SOVERSION "0"
2020
PUBLIC_HEADER "${LIB_HEADER}")
2121
install(TARGETS libjsonnet++
22+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
2223
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
2324
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
2425
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")

0 commit comments

Comments
 (0)