Use response file for Ninja

This commit is contained in:
theo3 2021-01-17 22:41:41 -08:00
parent a0f67e2f7d
commit f1401e51ce
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.13)
project(uking CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_NINJA_FORCE_RESPONSE_FILE ON)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-fdiagnostics-color=always)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")