Author: tkreuzer
Date: Sat Mar 23 18:43:27 2013
New Revision: 58592
URL:
http://svn.reactos.org/svn/reactos?rev=58592&view=rev
Log:
[CMAKE]
Implement add_object_library function
Modified:
trunk/reactos/cmake/CMakeMacros.cmake
Modified: trunk/reactos/cmake/CMakeMacros.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/CMakeMacros.cmake?re…
==============================================================================
--- trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] Sat Mar 23 18:43:27 2013
@@ -422,3 +422,13 @@
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()