mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-10-31 23:26:22 +00:00
Fix clang-tidy CI job
This commit is contained in:
parent
ccbbd7b2e4
commit
5a7087f3a7
@ -1815,6 +1815,9 @@ ${GNSSSDR_BINARY_DIR}/thirdparty/glog/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/configu
|
||||
endif()
|
||||
if(NOT (CMAKE_VERSION VERSION_LESS "3.22"))
|
||||
target_precompile_headers(Glog::glog INTERFACE ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/glog/export.h)
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set(CMAKE_CXX_COMPILE_OPTIONS_USE_PCH -Winvalid-pch -x c++-header -include ${GNSSSDR_BINARY_DIR}/glog-${GNSSSDR_GLOG_LOCAL_VERSION}/glog/export.h)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(LIBUNWIND_FOUND)
|
||||
|
@ -183,4 +183,7 @@ endif()
|
||||
# Fix for glog 0.7.0
|
||||
if(EXISTS ${GLOG_INCLUDE_DIRS}/export.h)
|
||||
target_precompile_headers(Glog::glog INTERFACE ${GLOG_INCLUDE_DIRS}/export.h)
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set(CMAKE_CXX_COMPILE_OPTIONS_USE_PCH -Winvalid-pch -x c++-header -include ${GLOG_INCLUDE_DIRS}/export.h)
|
||||
endif()
|
||||
endif()
|
Loading…
Reference in New Issue
Block a user