CMakeLists.txt: Set CMAKE_UNITY_BUILD to TRUE by default

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-08-09 10:18:00 +02:00
parent b8bb1181d1
commit a98cd3e534
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ configure_file("resources/${PROJECT_NAME}.rc" "processed/${PROJECT_NAME}.rc" @ON
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if (NOT DEFINED CMAKE_UNITY_BUILD)
set(CMAKE_UNITY_BUILD TRUE)
endif()
include(CheckPIESupported)
check_pie_supported(LANGUAGES CXX)
set(USER_DEFINED_PIE (DEFINED CMAKE_POSITION_INDEPENDENT_CODE))