diff --git a/src/bindings/js/node/CMakeLists.txt b/src/bindings/js/node/CMakeLists.txt index d14327529b0..cc8918155f1 100644 --- a/src/bindings/js/node/CMakeLists.txt +++ b/src/bindings/js/node/CMakeLists.txt @@ -11,8 +11,8 @@ if(CMAKE_VERSION VERSION_LESS 3.14) return() endif() -if(CMAKE_COMPILER_IS_GNUCXX AND LINUX AND AARCH64 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0) - message(WARNING "JS API is not support compiler version less than 7, skipping") +if(CMAKE_COMPILER_IS_GNUCXX AND LINUX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0) + message(WARNING "JS API is not support gcc compiler version less than 7, skipping") return() endif() diff --git a/thirdparty/onnx/CMakeLists.txt b/thirdparty/onnx/CMakeLists.txt index d57ae6f8bb1..f0d2889c786 100644 --- a/thirdparty/onnx/CMakeLists.txt +++ b/thirdparty/onnx/CMakeLists.txt @@ -53,8 +53,8 @@ if(WIN32) endif() endif() -#WA to support old compiler version, removes unused header which may block build -if(CMAKE_COMPILER_IS_GNUCXX AND LINUX AND AARCH64 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0) +# WA to support old compiler version, removes unused header which may block build +if(CMAKE_COMPILER_IS_GNUCXX AND LINUX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0) file(READ onnx/onnx/defs/parser.cc CONTENT) string(REPLACE "#include " "" CONTENT "${CONTENT}") file(WRITE onnx/onnx/defs/parser.cc "${CONTENT}")