[ros-diffs] [jgardou] 49406: [CMAKE] - put advapi32.def into source files.

jgardou at svn.reactos.org jgardou at svn.reactos.org
Mon Nov 1 16:32:34 UTC 2010


Author: jgardou
Date: Mon Nov  1 16:32:32 2010
New Revision: 49406

URL: http://svn.reactos.org/svn/reactos?rev=49406&view=rev
Log:
[CMAKE]
  - put advapi32.def into source files.

Modified:
    branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt

Modified: branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt?rev=49406&r1=49405&r2=49406&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt [iso-8859-1] Mon Nov  1 16:32:32 2010
@@ -40,7 +40,12 @@
     token/privilege.c
     token/token.c
     advapi32_stubs.c
-    advapi32.rc)
+    advapi32.rc
+    advapi32.def)
+    
+if(NOT MSVC)
+    set_source_files_properties(advapi32.def PROPERTIES EXTERNAL_OBJECT TRUE)
+endif()
 
 add_library(advapi32 SHARED
     ${CMAKE_CURRENT_BINARY_DIR}/advapi32_advapi32.h.gch
@@ -49,12 +54,11 @@
 set_module_type(advapi32 win32dll)
 
 target_link_libraries(advapi32
-    ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.def
     svcctl_client
     lsa_client
     eventlogrpc_client
     wine
-    pseh)
+    ${PSEH_LIB})
 
 add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
 




More information about the Ros-diffs mailing list