CMakeLists.txt
changeset 12804 1a330416800d
parent 12792 4063a5ebe39b
child 12869 2b56cef46971
     1.1 --- a/CMakeLists.txt	Sat Jun 08 18:22:18 2019 -0700
     1.2 +++ b/CMakeLists.txt	Sat Jun 08 18:32:29 2019 -0700
     1.3 @@ -418,6 +418,11 @@
     1.4      endif()
     1.5    endif()
     1.6  
     1.7 +  check_c_compiler_flag(-fno-strict-aliasing HAVE_GCC_NO_STRICT_ALIASING)
     1.8 +  if(HAVE_GCC_NO_STRICT_ALIASING)
     1.9 +    list(APPEND EXTRA_CFLAGS "-fno-strict-aliasing")
    1.10 +  endif()
    1.11 +
    1.12    check_c_compiler_flag(-Wdeclaration-after-statement HAVE_GCC_WDECLARATION_AFTER_STATEMENT)
    1.13    if(HAVE_GCC_WDECLARATION_AFTER_STATEMENT)
    1.14      check_c_compiler_flag(-Werror=declaration-after-statement HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT)