diff --git a/CMakeLists.txt b/CMakeLists.txt index 44f1694f..4ba5c985 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,6 +203,7 @@ if (USE_IMGUI_GL3) else() add_definitions(-DEU07_USEIMGUIIMPLOPENGL2) set(SOURCES ${SOURCES} "imgui/imgui_impl_opengl2.cpp") + set_source_files_properties("imgui/imgui_impl_opengl2.cpp" PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE) endif() if (WITH_UART) @@ -353,6 +354,9 @@ if(NOT ${CMAKE_VERSION} VERSION_LESS "3.16.0") if (USE_PCH) target_precompile_headers(${PROJECT_NAME} PRIVATE "$<$:${CMAKE_CURRENT_SOURCE_DIR}/stdafx.h>") + set_source_files_properties("ref/glad/src/glad.c" "ref/dds-ktx/src/dds-ktx.c" "stb/stb_image.c" + "imgui/imgui.cpp" "imgui/imgui_demo.cpp" "imgui/imgui_draw.cpp" "imgui/imgui_widgets.cpp" "imgui/imgui_impl_glfw.cpp" + PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE) endif() endif() diff --git a/imgui/imgui_demo.cpp b/imgui/imgui_demo.cpp index 97a14e82..df875b23 100644 --- a/imgui/imgui_demo.cpp +++ b/imgui/imgui_demo.cpp @@ -53,8 +53,6 @@ Index of this file: */ -#include "stdafx.h" - #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) #define _CRT_SECURE_NO_WARNINGS #endif diff --git a/imgui/imgui_widgets.cpp b/imgui/imgui_widgets.cpp index 5b176d33..f4d611d9 100644 --- a/imgui/imgui_widgets.cpp +++ b/imgui/imgui_widgets.cpp @@ -28,7 +28,6 @@ Index of this file: */ -#include "stdafx.h" #ifdef DBG_NEW #undef new #endif