build: Unify -logsourcelocations format

This commit is contained in:
Hennadii Stepanov
2024-09-04 07:52:02 +01:00
parent f1bcf3edc5
commit 788c1324f3
3 changed files with 4 additions and 9 deletions

View File

@@ -23,14 +23,6 @@ if(NOT MSVC)
else()
set(WITH_CCACHE OFF)
endif()
if(WITH_CCACHE)
try_append_cxx_flags("-fdebug-prefix-map=A=B" TARGET core_interface SKIP_LINK
IF_CHECK_PASSED "-fdebug-prefix-map=${PROJECT_SOURCE_DIR}=."
)
try_append_cxx_flags("-fmacro-prefix-map=A=B" TARGET core_interface SKIP_LINK
IF_CHECK_PASSED "-fmacro-prefix-map=${PROJECT_SOURCE_DIR}=."
)
endif()
endif()
mark_as_advanced(CCACHE_EXECUTABLE)