From 27d718491297f2b26402880d763fe8ef9fffbbf4 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Sun, 29 Mar 2020 12:49:11 -0700 Subject: [PATCH] Update to use CMake 3.16 for pch support note VS 2019 (16.5) includes CMake 3.16 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7450ee..a979835 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ # # http://go.microsoft.com/fwlink/?LinkId=248926 -cmake_minimum_required (VERSION 3.11) +cmake_minimum_required (VERSION 3.16) project (DirectXTex LANGUAGES CXX) @@ -81,6 +81,8 @@ source_group(${PROJECT_NAME} REGULAR_EXPRESSION DirectXTex/*.*) target_include_directories(${PROJECT_NAME} PUBLIC DirectXTex) +target_precompile_headers(${PROJECT_NAME} PRIVATE DirectXTex/DirectXTexP.h) + if(MSVC) # Use max Warning Level string(REPLACE "/W3 " "/Wall " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})