fixed indentation for cmake files

(cherry picked from commit a46d047f9466c6f16597755bb7c771a9d1a147f2)
(cherry picked from commit bde36062b7a0bf621086e73a5d419cd8637e9e96)
This commit is contained in:
ipriver authored and funjoker committed 2023-05-19 22:26:00 +02:00
1 parent 992082ebb5
commit 408c386830
29 files changed
+186 -186

No files matched your search

+5 -5
View File
@@ -1,5 +1,5 @@
if (CMAKE_VERSION VERSION_LESS "3.16.0")
if (MSVC)
if(CMAKE_VERSION VERSION_LESS "3.16.0")
if(MSVC)
# Specify the maximum PreCompiled Header memory allocation limit
# Fixes a compiler-problem when using PCH - the /Ym flag is adjusted by the compiler in MSVC2012,
# hence we need to set an upper limit with /Zm to avoid discrepancies)
@@ -7,13 +7,13 @@ if (CMAKE_VERSION VERSION_LESS "3.16.0")
#
# Note: This workaround was verified to be required on MSVC 2017 as well
set(COTIRE_PCH_MEMORY_SCALING_FACTOR 500)
endif ()
endif()
include(cotire)
function(ADD_CXX_PCH TARGET_NAME_LIST PCH_HEADER)
# Use the header for every target
foreach (TARGET_NAME ${TARGET_NAME_LIST})
foreach(TARGET_NAME ${TARGET_NAME_LIST})
# Disable unity builds
set_target_properties(${TARGET_NAME} PROPERTIES COTIRE_ADD_UNITY_BUILD OFF)
@@ -32,4 +32,4 @@ else()
target_precompile_headers(${TARGET_NAME} PRIVATE ${PCH_HEADER})
endforeach()
endfunction(ADD_CXX_PCH)
endif()
endif()