[CMAKE]: PCH for NTDLL too.
authorSir Richard <sir_richard@svn.reactos.org>
Wed, 4 Aug 2010 08:16:37 +0000 (08:16 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Wed, 4 Aug 2010 08:16:37 +0000 (08:16 +0000)
svn path=/branches/cmake-bringup/; revision=48450

dll/ntdll/CMakeLists.txt

index 4432df0..e2b7908 100644 (file)
@@ -15,7 +15,7 @@ list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/dispatch/amd64/stubs.c)
 
 file(GLOB_RECURSE ARCH_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.c" "${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.s")
 
-add_library(ntdll SHARED ${ARCH_SOURCE} ${SOURCE} ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.rc)
-
+add_library(ntdll SHARED ${ARCH_SOURCE} ${SOURCE} ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.rc  ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h.gch)
 target_link_libraries(ntdll rtl ntdllsys libcntpr pseh)
+add_pch(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h ${SOURCE})
 add_dependencies(ntdll ntstatus version)
\ No newline at end of file