Fix paths in compiler error messages #10434

This commit is contained in:
Alexey Milovidov 2020-05-12 05:12:08 +03:00
parent f26f8b99dc
commit 2dd1a1d7b4

View File

@ -211,7 +211,8 @@ if (COMPILER_CLANG)
endif()
# Display absolute paths in error messages. Otherwise KDevelop fails to navigate to correct file and opens a new file instead.
set(COMPILER_FLAGS "${COMPILER_FLAGS} -fdiagnostics-absolute-paths")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-absolute-paths")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdiagnostics-absolute-paths")
option(ENABLE_THINLTO "Enable Thin LTO. Only applicable for clang. It's also suppressed when building with tests or sanitizers." ON)