[CMAKE] Don't use the PCH for generated files.

The PCH must be used with the same compiler flags it was generated with,
so don't use it for files that use modified flags.
This commit is contained in:
Thomas Faber 2019-04-08 07:12:20 +02:00
parent 545a2c7936
commit 5685ad4a12
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
7 changed files with 20 additions and 21 deletions

View file

@ -11,7 +11,6 @@ list(APPEND SOURCE
callback.c
hlpfile.c
macro.c
macro.lex.yy.c
winhelp.c
precomp.h)
@ -19,9 +18,9 @@ list(APPEND SOURCE
set_source_files_properties(macro.lex.yy.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winhelp.ico)
add_executable(winhlp32 ${SOURCE} string.c rsrc.rc)
add_executable(winhlp32 ${SOURCE} macro.lex.yy.c string.c rsrc.rc)
set_module_type(winhlp32 win32gui)
target_link_libraries(winhlp32 wine)
add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
#add_pch(winhlp32 precomp.h SOURCE)
add_pch(winhlp32 precomp.h SOURCE)
add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)