Skip to content

Commit 41909bf

Browse files
committed
try to fix windows shared lib location
1 parent 10ef3e5 commit 41909bf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

cmake_modules/BuildUtils.cmake

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,18 @@ function(ADD_ICEBERG_LIB LIB_NAME)
128128

129129
install(TARGETS ${LIB_NAME}_shared
130130
EXPORT ${LIB_NAME}_targets
131-
ARCHIVE DESTINATION ${INSTALL_ARCHIVE_DIR}
132-
LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR}
133131
RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR}
132+
LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR}
133+
ARCHIVE DESTINATION ${INSTALL_LIBRARY_DIR}
134134
INCLUDES
135135
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
136+
137+
if(MSVC)
138+
set_target_properties(${LIB_NAME}_shared
139+
PROPERTIES
140+
RUNTIME_OUTPUT_NAME ${LIB_NAME}
141+
ARCHIVE_OUTPUT_NAME ${LIB_NAME})
142+
endif()
136143
endif()
137144

138145
if(BUILD_STATIC)

0 commit comments

Comments
 (0)