Fixed macOS stress_tests build with PKG config (#14004)

This commit is contained in:
Ilya Churaev 2022-11-16 15:27:01 +04:00 committed by GitHub
parent 8a2b1c9cf9
commit a410157b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
#include <psapi.h>
#include <tlhelp32.h>
#else
#include <sys/unistd.h>
#include <unistd.h>
#include <sys/wait.h>
#endif

View File

@ -33,7 +33,7 @@ foreach(target IN LISTS gtest_targets)
set_target_properties(${target} PROPERTIES COMPILE_OPTIONS "${_target_cxx_flags}")
endif()
endif()
elseif(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG OR
elseif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$" OR
CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
target_compile_options(${target} PRIVATE -Wno-undef)
if(CMAKE_COMPILER_IS_GNUCXX)