Merge pull request #20 from notyourav/responsefile

Use response file for Ninja
This commit is contained in:
Léo Lam 2021-01-18 11:31:22 +01:00 committed by GitHub
commit d366fd05fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")