[CMAKE]
[reactos.git] / CMakeMacros.cmake
index b2a7c68..af13ce0 100644 (file)
@@ -27,20 +27,6 @@ MACRO(_PCH_GET_COMPILE_FLAGS _target_name _out_compile_flags _header_filename)
 \r
 ENDMACRO(_PCH_GET_COMPILE_FLAGS) \r
 \r
-MACRO(add_pch _target_name _header_filename _src_list)\r
-    \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
-        DEPENDS ${_header_filename})\r
-\r
-ENDMACRO(add_pch _target_name _header_filename _src_list)\r
-\r
 if (NOT MSVC)\r
 MACRO(CreateBootSectorTarget _target_name _asm_file _object_file)\r
 \r