CMakeLists.txt: Set CMAKE_UNITY_BUILD to TRUE by default
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
b8bb1181d1
commit
a98cd3e534
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue