1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-09-19 15:19:56 +00:00

Update to use CMake 3.16 for pch support

note VS 2019 (16.5) includes CMake 3.16
This commit is contained in:
Chuck Walbourn 2020-03-29 12:49:11 -07:00
parent 4dd58180d7
commit 27d7184912

View File

@ -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})