mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-09 22:40:06 +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:
parent
4dd58180d7
commit
27d7184912
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user