From 2b48c4a4b19a5451db4d659175eae6937aef4017 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 25 Sep 2014 19:37:02 +0000 Subject: [PATCH] [KERNEL32_VISTA] * Fix MSVC build. svn path=/trunk/; revision=64284 --- reactos/dll/win32/kernel32_vista/CMakeLists.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/reactos/dll/win32/kernel32_vista/CMakeLists.txt b/reactos/dll/win32/kernel32_vista/CMakeLists.txt index 0e2e2809cb2..30d7710b715 100644 --- a/reactos/dll/win32/kernel32_vista/CMakeLists.txt +++ b/reactos/dll/win32/kernel32_vista/CMakeLists.txt @@ -9,16 +9,15 @@ spec2def(kernel32_vista.dll kernel32_vista.spec ADD_IMPORTLIB) list(APPEND SOURCE DllMain.c GetTickCount64.c -) - -add_library(kernel32_vista SHARED - ${SOURCE} - ${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def -) + ${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def) +add_library(kernel32_vista SHARED ${SOURCE}) set_module_type(kernel32_vista win32dll HOTPATCHABLE ENTRYPOINT DllMain 12) - add_importlibs(kernel32_vista kernel32) +if(MSVC) + add_importlibs(kernel32_vista ntdll) +endif() + add_dependencies(kernel32_vista psdk) add_cd_file(TARGET kernel32_vista DESTINATION reactos/system32 FOR all)