File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -164,8 +164,12 @@ install(TARGETS uvw EXPORT uvwConfig ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
164
164
if (FETCH_LIBUV AND BUILD_UVW_LIBS )
165
165
# libuv is only fetched when both above conditions are true
166
166
install (DIRECTORY ${libuv_SOURCE_DIR} /include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /uvw/uv/include )
167
- install (TARGETS uv_a EXPORT uvwConfig ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} /uvw )
168
- install (TARGETS uv EXPORT uvwConfig LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} /uvw )
167
+ if (BUILD_UVW_SHARED_LIB )
168
+ install (TARGETS uv EXPORT uvwConfig LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} /uvw )
169
+ else ()
170
+ install (TARGETS uv_a EXPORT uvwConfig ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} /uvw )
171
+ endif ()
172
+
169
173
endif (FETCH_LIBUV AND BUILD_UVW_LIBS )
170
174
171
175
### Testing
You can’t perform that action at this time.
0 commit comments