Implement add_object_library function

svn path=/trunk/; revision=58592
This commit is contained in:
Timo Kreuzer 2013-03-23 18:43:27 +00:00
parent 99afe97aa2
commit 6b7605bd22

View file

@ -422,3 +422,13 @@ function(get_defines OUTPUT_VAR)
endforeach()
set(${OUTPUT_VAR} ${__tmp_var} PARENT_SCOPE)
endfunction()
if(NOT MSVC AND (CMAKE_VERSION VERSION_GREATER 2.8.7))
function(add_object_library _target)
add_library(${_target} OBJECT ${ARGN})
endfunction()
else()
function(add_object_library _target)
add_library(${_target} ${ARGN})
endfunction()
endif()