[ros-diffs] [akhaldi] 56289: [CMAKE] * The def file is also an external object (that should be added to the link command directly).

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Sat Mar 31 19:01:29 UTC 2012


Author: akhaldi
Date: Sat Mar 31 19:01:26 2012
New Revision: 56289

URL: http://svn.reactos.org/svn/reactos?rev=56289&view=rev
Log:
[CMAKE]
* The def file is also an external object (that should be added to the link command directly).

Modified:
    trunk/reactos/cmake/gcc.cmake

Modified: trunk/reactos/cmake/gcc.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=56289&r1=56288&r2=56289&view=diff
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Sat Mar 31 19:01:26 2012
@@ -243,6 +243,7 @@
         OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c
         COMMAND native-spec2def -n=${_dllname} --kill-at -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} native-spec2def)
+    set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def PROPERTIES EXTERNAL_OBJECT TRUE)
     
     if(__add_importlib)
         # generate the def for the export lib




More information about the Ros-diffs mailing list