Fixed case when users explicitly pass different gcc ABI via cxx flags (#24274)
### Details: - Should help with https://github.com/conan-io/conan-center-index/pull/23754 - Taken from https://github.com/openvinotoolkit/openvino/pull/23534
This commit is contained in:
parent
768e4e1c6c
commit
3b0d2013b8
|
|
@ -119,7 +119,7 @@ function(ov_get_compiler_definition definition var)
|
|||
endif()
|
||||
|
||||
execute_process(COMMAND echo "#include <string>"
|
||||
COMMAND "${CMAKE_CXX_COMPILER}" -x c++ - -E -dM
|
||||
COMMAND "${CMAKE_CXX_COMPILER}" -x c++ - -E -dM ${CMAKE_CXX_FLAGS}
|
||||
COMMAND grep -E "^#define ${definition} "
|
||||
OUTPUT_VARIABLE output_value
|
||||
ERROR_VARIABLE error_message
|
||||
|
|
|
|||
Loading…
Reference in New Issue