Флаг для пропуска сборки статических библиотек
This commit is contained in:
parent
0848b7313f
commit
572c4b9d0f
@ -27,12 +27,14 @@ function(add_common_library)
|
|||||||
install(TARGETS ${LIBNAME}_shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(TARGETS ${LIBNAME}_shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(${LIBNAME}_static STATIC $<TARGET_OBJECTS:${LIBNAME}>)
|
if(SKIP_STATIC_LIBS)
|
||||||
set_target_properties(${LIBNAME}_static
|
add_library(${LIBNAME}_static STATIC $<TARGET_OBJECTS:${LIBNAME}>)
|
||||||
PROPERTIES
|
set_target_properties(${LIBNAME}_static
|
||||||
OUTPUT_NAME ${LIBNAME}
|
PROPERTIES
|
||||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR})
|
OUTPUT_NAME ${LIBNAME}
|
||||||
install(TARGETS ${LIBNAME}_static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
install(TARGETS ${LIBNAME}_static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
configure_file(${CMLIB_MODULE_DIR}/pc/lib.pc.in
|
configure_file(${CMLIB_MODULE_DIR}/pc/lib.pc.in
|
||||||
${CMAKE_BINARY_DIR}/${LIBNAME}.pc)
|
${CMAKE_BINARY_DIR}/${LIBNAME}.pc)
|
||||||
|
Loading…
Reference in New Issue
Block a user