From 628144104b01424914f7ac2d194cb91355dde1e3 Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Mon, 3 Jun 2024 17:52:29 +0200 Subject: [PATCH] link error only --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21c8d0955b6b5..bbb1285aca54c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,13 +147,13 @@ if(NOT CMAKE_CROSSCOMPILING) # Enable all compiler warnings. Treat compiler and linker warnings as errors. # add_compile_options(/Wall /WX) - add_compile_options(/WX) +# add_compile_options(/WX) add_link_options(/WX) else() # Enable all (and extra) compiler warnings. Treat compiler and linker warnings as errors. # add_compile_options(-Wall -Werror -Wextra) # add_compile_options(-Wall -Werror) - add_compile_options(-Werror) +# add_compile_options(-Werror) add_link_options(-Wl,--fatal-warnings) endif() add_subdirectory(sdk/include/host)