[CMAKE]
[reactos.git] / msc.cmake
index 413da1c..9317ac6 100644 (file)
--- a/msc.cmake
+++ b/msc.cmake
@@ -26,12 +26,9 @@ set(CMAKE_RC_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_F
 MACRO(add_pch _target_name _header_filename _src_list)\r
     get_filename_component(FILE ${_header_filename} NAME)\r
     set(_gch_filename "${_target_name}_${FILE}.gch")\r
-    list(APPEND ${_src_list} ${_gch_filename})\r
-    _PCH_GET_COMPILE_FLAGS(${_target_name} _args ${_header_filename})\r
-    file(REMOVE ${_gch_filename})\r
     add_custom_command(\r
         OUTPUT ${_gch_filename}\r
-        COMMAND ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} ${_args}\r
+        COMMAND echo Ignoring precompiled header\r
         DEPENDS ${_header_filename})\r
 ENDMACRO(add_pch _target_name _header_filename _src_list)\r
 \r