1
0
mirror of https://github.com/microsoft/DirectXTex synced 2025-01-14 19:40:18 +00:00

Guard pch usage to support older CMake

This commit is contained in:
Chuck Walbourn 2020-03-29 15:09:59 -07:00
parent 27d7184912
commit fbef34734e

View File

@ -5,7 +5,7 @@
#
# http://go.microsoft.com/fwlink/?LinkId=248926
cmake_minimum_required (VERSION 3.16)
cmake_minimum_required (VERSION 3.11)
project (DirectXTex LANGUAGES CXX)
@ -81,7 +81,9 @@ source_group(${PROJECT_NAME} REGULAR_EXPRESSION DirectXTex/*.*)
target_include_directories(${PROJECT_NAME} PUBLIC DirectXTex)
target_precompile_headers(${PROJECT_NAME} PRIVATE DirectXTex/DirectXTexP.h)
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16")
target_precompile_headers(${PROJECT_NAME} PRIVATE DirectXTex/DirectXTexP.h)
endif()
if(MSVC)
# Use max Warning Level