CGNS/CGNS
src/CMakeLists.txt
:73
check_c_compiler_flag("${_option}" ${_option_variable})
check_c_compiler_flag("${_option}" ${_option_variable})
Check_C_Compiler_Flag( HAVE_NO_RESERVED_ID_MACROS -Wno-reserved-id-macros)
check_c_compiler_flag("${flag}" WARNING_C_FLAG_${flag})
check_c_compiler_flag("-msse" "CC_HAS_MSSE")
check_c_compiler_flag(-Werror HAVE_WERROR_FLAG)
check_c_compiler_flag(-Wdeclaration-after-statement HAVE_DECL_AFTER_STMT_FLAG)
check_c_compiler_flag("-fstack-protector-strong" HAVE_STACK_PROTECTOR_FLAG)
check_c_compiler_flag("-march=${ENABLE_ARCH}" HAS_FLAG_ARCH)
check_c_compiler_flag("${avx2_flag}" HAS_FLAG_AVX2)
check_c_compiler_flag("${avx512_flag}" HAS_FLAG_AVX512)
check_c_compiler_flag("-funroll-loops" HAS_FLAG_UNROLL_LOOPS)
check_c_compiler_flag("-fsanitize=${type} -fno-omit-frame-pointer" "_sanitizer_${type}")
check_c_compiler_flag("-Werror ${_arg}" _supported_flag)
CHECK_C_COMPILER_FLAG(-gstabs+ HAVE_GSTABSP_FLAG)
check_c_compiler_flag("${FLAG}" C_FLAG)
CHECK_C_COMPILER_FLAG("${flag_i}" test_option)
check_c_compiler_flag("-Wformat -Werror=format-security -Wno-format-nonliteral" HAVE_WFLAG_FORMAT_SECURITY)
check_c_compiler_flag(-ftrapv HAVE_FTRAPV)
check_c_compiler_flag(-wd2312 HAVE_WD2312) # pointer cast involving 64-bit pointed-to type
check_c_compiler_flag("" _GLFW_HAS_64ASLR)
check_c_compiler_flag(-Wno-pedantic-ms-format HAVE_NO_PEDANTIC_MS_FORMAT)
check_c_compiler_flag(-march=native HAVE_MARCH_NATIVE)
check_c_compiler_flag(-mcpu=native HAVE_MCPU_NATIVE)
check_c_compiler_flag(-mcpu=native HAVE_MCPU_NATIVE)
check_c_compiler_flag(-fno-semantic-interposition HAVE_NO_INTERPOSITION)
check_c_compiler_flag(${flag} C_HAS_WARNING${flag_var})
# CHECK_C_COMPILER_FLAG(<flag> <var>)
check_c_compiler_flag("-fvisibility=hidden" FLAG_VISIBILITY)
check_c_compiler_flag(-mcpu=native HAVE_MCPU_NATIVE)
check_c_compiler_flag(-diag-disable=10441 HAVE_DIAG_10441)
check_c_compiler_flag(-Wno-pedantic-ms-format HAVE_NO_PEDANTIC_MS_FORMAT)
check_c_compiler_flag(-march=native HAVE_MARCH_NATIVE)
check_c_compiler_flag(-coverage HAVE_COVERAGE)
check_c_compiler_flag(-fno-omit-frame-pointer HAVE_NO_OMIT_FRAME_POINTER)
check_c_compiler_flag(-fsanitize-memory-track-origins HAVE_MEMORY_TRACK_ORIGINS)
check_c_compiler_flag(${flag_} ${flag_var})
check_c_compiler_flag(-Wdeclaration-after-statement HAVE_WDECLARATION_AFTER_STATEMENT)
check_c_compiler_flag(-Wshadow HAVE_WSHADOW)
check_c_compiler_flag(-Wstrict-prototypes HAVE_WSTRICT_PROTOTYPES)
check_c_compiler_flag("${flag}" check_c_compiler_flag_${_flag_esc})
check_c_compiler_flag(${_FLAG} IS_${UPCASE_PRETTY}_SUPPORTED)
check_c_compiler_flag(${_FLAG} IS_${UPCASE_PRETTY}_SUPPORTED)
check_c_compiler_flag(${option} ${guard})
check_c_compiler_flag(-faltivec HAVE_ALTIVEC)
check_c_compiler_flag(-mavx HAVE_AVX)
check_c_compiler_flag(-msse2 HAVE_SSE2)
check_c_compiler_flag(/wd4100 UV_LINT_NO_UNUSED_PARAMETER_MSVC)
check_c_compiler_flag(/wd4201 UV_LINT_NO_NONSTANDARD_MSVC)
check_c_compiler_flag(/wd4206 UV_LINT_NO_NONSTANDARD_EMPTY_TU_MSVC)
check_c_compiler_flag(/wd4210 UV_LINT_NO_NONSTANDARD_FILE_SCOPE_MSVC)
check_c_compiler_flag(/wd4232 UV_LINT_NO_NONSTANDARD_NONSTATIC_DLIMPORT_MSVC)
check_c_compiler_flag(/wd4459 UV_LINT_NO_HIDES_GLOBAL)
check_c_compiler_flag(/wd4706 UV_LINT_NO_CONDITIONAL_ASSIGNMENT_MSVC)
CHECK_C_COMPILER_FLAG("-Wformat-signedness" C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS)
check_c_compiler_flag(${_CCOPT_ON} ${_optvarname})
check_c_compiler_flag(-fsanitize=address C__fsanitize_address_VALID)
check_c_compiler_flag(-fvisibility=hidden NNG_HIDDEN_VISIBILITY)
check_c_compiler_flag("${CC_FLAG}" flag_supported)
CHECK_C_COMPILER_FLAG("-mlsx" COMPILER_SUPPORTS_LSX)
check_c_compiler_flag(-Wno-pedantic-ms-format HAVE_NO_PEDANTIC_MS_FORMAT)
check_c_compiler_flag(-mcpu=native HAVE_MCPU_NATIVE)
check_c_compiler_flag("-ftest-coverage -fprofile-arcs -fprofile-values" HAVE_TEST_COVERAGE)
check_c_compiler_flag("-march=armv8-a+crc" HAVE_MARCH_ARMV8_CRC)
check_c_compiler_flag("-mtune=cascadelake" HAVE_CASCADE_LAKE)
check_c_compiler_flag(-fno-omit-frame-pointer HAVE_NO_OMIT_FRAME_POINTER)
check_c_compiler_flag(-fsanitize-memory-track-origins HAVE_MEMORY_TRACK_ORIGINS)
check_c_compiler_flag("-fstack-protector" HAVE_STACK_PROTECTOR)
check_c_compiler_flag("-fsanitize=leak" PARSEC_HAVE_DEBUG_MEM_LEAK)
check_c_compiler_flag("-fsanitize=address" PARSEC_HAVE_DEBUG_MEM_ADDR)
check_c_compiler_flag("${_flag}" PARSEC_FLEX_FLAG${SAFE_flag})
check_c_compiler_flag("${_flag}" C_COMPILER_SUPPORTS_${_flag})
check_c_compiler_flag(-Wpointer-arith has_wpointer_aritih)
check_c_compiler_flag(-Winit-self has_winit_self)
check_c_compiler_flag(-Wno-unused-function has_wno_unused_function)
check_c_compiler_flag(-Wno-unreachable-code has_wno_unreachable_code)
CHECK_C_COMPILER_FLAG(-pipe C_ACCEPTS_PIPE)
CHECK_C_COMPILER_FLAG(-ansi C_ACCEPTS_ANSI)
CHECK_C_COMPILER_FLAG(-Wall C_ACCEPTS_WALL)
CHECK_C_COMPILER_FLAG("-mcpu=power9" HAS_POWER9)
CHECK_C_COMPILER_FLAG("-maltivec" HAS_ALTIVEC)
CHECK_C_COMPILER_FLAG("-march=armv8-a+crc+crypto" HAS_ARMV8_CRC)
CHECK_C_COMPILER_FLAG("-march=loongarch64" HAS_LOONGARCH64)
CHECK_C_COMPILER_FLAG(-flto C_SUPPORTS_FLTO)
check_c_compiler_flag(-wo${diagnostic_MSVC} C_DIAGNOSTIC_${suffix})
check_c_compiler_flag(-W${diagnostic_GCC} C_DIAGNOSTIC_${suffix})
check_c_compiler_flag(${flag_MSVC} C_CHECK_FLAG_${suffix})
check_c_compiler_flag(${flag_CLANG} C_CHECK_FLAG_${suffix})
check_c_compiler_flag(${flag_GCC} C_CHECK_FLAG_${suffix})
check_c_compiler_flag ( "-Wno-pass-failed" HAVE_NO_PASS_FAILED )
check_c_compiler_flag(${FLAG} ${CACHE_ID})
check_c_compiler_flag(-Wnull-dereference ${CACHE_ID})
check_c_compiler_flag("${_flag}" C_COMPILER_SUPPORTS_${_flag})
check_c_compiler_flag(-Wshadow has_wshadow)
check_c_compiler_flag(-Wno-unused-function has_wno_unused_function)
CHECK_C_COMPILER_FLAG(-pipe C_ACCEPTS_PIPE)
CHECK_C_COMPILER_FLAG(-ansi C_ACCEPTS_ANSI)
CHECK_C_COMPILER_FLAG(-Wall C_ACCEPTS_WALL)
check_c_compiler_flag(-fsanitize=${sanitizer} C_COMPILER_FLAG_FSANITIZE_${sanitizer})
check_c_compiler_flag("-Wc90-c99-compat" C_COMPILER_FLAG_WC90_C99_COMPAT)
check_c_compiler_flag(-fprofile-abs-path HAVE_c_fprofile_abs_path)