mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
[CMAKE]
- Improve advapi32 build. svn path=/branches/cmake-bringup/; revision=48539
This commit is contained in:
parent
4fecfbd2b9
commit
4df8754758
|
@ -1,5 +1,5 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -Wl,-L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
add_definitions(-D_ADVAPI32_)
|
||||
|
@ -29,8 +29,9 @@ set_target_properties(advapi32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
|||
target_link_libraries(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.def
|
||||
wine
|
||||
pseh
|
||||
mingw_common
|
||||
rpcrt4)
|
||||
rpcrt4
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
|
||||
|
||||
add_pch(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.h ${SOURCE})
|
||||
add_dependencies(advapi32 svcctl_client lsa_client eventlogrpc_client version)
|
||||
|
|
Loading…
Reference in a new issue