[ros-diffs] [akhaldi] 56321: [CMAKE] * CMake automatically handles def files when they're added to the source list, so we don't need to mark it as an external object here.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Mon Apr 2 15:27:36 UTC 2012


Author: akhaldi
Date: Mon Apr  2 15:27:35 2012
New Revision: 56321

URL: http://svn.reactos.org/svn/reactos?rev=56321&view=rev
Log:
[CMAKE]
* CMake automatically handles def files when they're added to the source list, so we don't need to mark it as an external object here.

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=56321&r1=56320&r2=56321&view=diff
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Mon Apr  2 15:27:35 2012
@@ -243,8 +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
         add_custom_command(
@@ -252,7 +251,7 @@
             COMMAND native-spec2def -n=${_dllname} -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}_implib.def ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
             DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} native-spec2def)
         set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}_implib.def PROPERTIES EXTERNAL_OBJECT TRUE)
-        
+
         #create normal importlib
         _add_library(lib${_file} STATIC EXCLUDE_FROM_ALL ${CMAKE_CURRENT_BINARY_DIR}/${_file}_implib.def)
         set_target_properties(lib${_file} PROPERTIES LINKER_LANGUAGE "IMPLIB" PREFIX "")




More information about the Ros-diffs mailing list