diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 550ac4b..257b52d 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -9,15 +9,7 @@ function(core_add_library name) set(name nfs_${name}) set(CMAKE_POSITION_INDEPENDENT_CODE ON) - add_library(${name} STATIC ${SOURCES} ${HEADERS}) + add_library(${name} OBJECT ${SOURCES} ${HEADERS}) target_include_directories(${name} PUBLIC $) set(CORE_LIBRARIES "${name};${CORE_LIBRARIES}" CACHE INTERNAL "") - - # no need to install core libs if we build shared library - if(NOT BUILD_SHARED_LIBS) - install(TARGETS ${name} EXPORT libnfs - RUNTIME DESTINATION bin - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib) - endif() endfunction()