[ros-diffs] [akhaldi] 53132: [CMAKE] * Convert add_importlibs to a function.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Sun Aug 7 22:48:11 UTC 2011


Author: akhaldi
Date: Sun Aug  7 22:48:11 2011
New Revision: 53132

URL: http://svn.reactos.org/svn/reactos?rev=53132&view=rev
Log:
[CMAKE]
* Convert add_importlibs to a 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?rev=53132&r1=53131&r2=53132&view=diff
==============================================================================
--- trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] Sun Aug  7 22:48:11 2011
@@ -227,15 +227,15 @@
     endmacro()
 endif()
 
-macro(add_importlibs MODULE)
-    add_dependency_node(${MODULE})
+function(add_importlibs _module)
+    add_dependency_node(${_module})
     foreach(LIB ${ARGN})
         if ("${LIB}" MATCHES "msvcrt")
             add_definitions(-D_DLL -D__USE_CRTIMP)
-            target_link_libraries(${MODULE} msvcrtex)
-        endif()
-        target_link_libraries(${MODULE} ${CMAKE_BINARY_DIR}/importlibs/lib${LIB}${CMAKE_STATIC_LIBRARY_SUFFIX})
-        add_dependencies(${MODULE} lib${LIB})
-        add_dependency_edge(${MODULE} ${LIB})
+            target_link_libraries(${_module} msvcrtex)
+        endif()
+        target_link_libraries(${_module} ${CMAKE_BINARY_DIR}/importlibs/lib${LIB}${CMAKE_STATIC_LIBRARY_SUFFIX})
+        add_dependencies(${_module} lib${LIB})
+        add_dependency_edge(${_module} ${LIB})
     endforeach()
-endmacro()
+endfunction()




More information about the Ros-diffs mailing list