diff --git a/Minecraft.Client/CMakeLists.txt b/Minecraft.Client/CMakeLists.txt index e16418922..ecc8b6e52 100644 --- a/Minecraft.Client/CMakeLists.txt +++ b/Minecraft.Client/CMakeLists.txt @@ -32,6 +32,7 @@ target_include_directories(Minecraft.Client PRIVATE target_compile_definitions(Minecraft.Client PRIVATE ${MINECRAFT_SHARED_DEFINES} ) +target_precompile_headers(Minecraft.Client PRIVATE stdafx.h) if(MSVC) configure_msvc_target(Minecraft.Client) target_link_options(Minecraft.Client PRIVATE diff --git a/Minecraft.World/CMakeLists.txt b/Minecraft.World/CMakeLists.txt index 9836a50fa..6469765e2 100644 --- a/Minecraft.World/CMakeLists.txt +++ b/Minecraft.World/CMakeLists.txt @@ -25,6 +25,7 @@ target_compile_definitions(Minecraft.World PRIVATE ${MINECRAFT_SHARED_DEFINES} _LIB ) +target_precompile_headers(Minecraft.World PRIVATE stdafx.h) if(MSVC) configure_msvc_target(Minecraft.World) endif()