From bd80b9e566f34284236ff2e6cd5b7b98a3bfeb8f Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 2 Jun 2021 09:44:08 +0100 Subject: [PATCH] Update CMakeCableOptions to final --- cmake/CableCompileOptions.cmake | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cmake/CableCompileOptions.cmake b/cmake/CableCompileOptions.cmake index aa435c2d6..8a1cab9a8 100644 --- a/cmake/CableCompileOptions.cmake +++ b/cmake/CableCompileOptions.cmake @@ -33,18 +33,12 @@ function(cable_add_compile_options) # CMake 3.19 additional -Werror flag must be added. list(GET languages 0 example_lang) set(compiler ${CMAKE_${example_lang}_COMPILER_ID}) - message("compiler: ${compiler}") if(compiler MATCHES GNU OR compiler MATCHES Clang) - message("set -Werror") set(CMAKE_REQUIRED_FLAGS -Werror) endif() - message("languages: ${languages}") - foreach(flag ${ARG_IF_SUPPORTED}) - message("Checking ${flag}") string(MAKE_C_IDENTIFIER ${flag} flag_id) - set(supported_in_all_languages TRUE) foreach(lang ${languages}) @@ -58,15 +52,11 @@ function(cable_add_compile_options) check_c_compiler_flag(${flag} ${result_var}) endif() - message(" - ${lang}: ${${result_var}}") - if(NOT "${${result_var}}") set(supported_in_all_languages FALSE) endif() endforeach() - message(" - all: ${supported_in_all_languages}") - if(supported_in_all_languages) list(APPEND options ${flag}) else() @@ -79,6 +69,5 @@ function(cable_add_compile_options) endif() endforeach() - message("OPTIONS: ${options}") add_compile_options(${options}) endfunction()