From 421734ae19bdd21050c059f780e47457e9cc68d5 Mon Sep 17 00:00:00 2001 From: Alan Turner Date: Wed, 7 Jun 2023 10:36:57 -0700 Subject: [PATCH] Disable werror for jit_library --- library/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 0b9810d90a..241664e38b 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -1,7 +1,7 @@ if (CK_BUILD_JIT_LIB) - remove_definitions(-Wglobal-constructors) + string(REPLACE "-Werror;" "" CMAKE_COMPILER_WARNINGS "${CMAKE_COMPILER_WARNINGS}") add_subdirectory(src/jit_library) - add_definitions(-Wglobal-constructors) + set(CMAKE_COMPILER_WARNINGS "${CMAKE_COMPILER_WARNINGS};-Werror") else() add_subdirectory(src/tensor_operation_instance/gpu) add_subdirectory(src/utility)