Spracherkennung für: .cmake vermutete Sprache: Fortran {Fortran[48] Postscript[37] Python[37]} [Methode: maximale Elemente, drei Dimensionen]
#
# Common compile settings for all DuckDB plugin sub-libraries.
# Usage: duckdb_setup_target(<target_name>)
#
MACRO(duckdb_setup_target _target)
# DuckDB headers require C++17.
SET_TARGET_PROPERTIES(${_target} PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
POSITION_INDEPENDENT_CODE ON
)
# libduckdb_bundle.a is built without debug STL wrappers.
# -U unconditionally undefines the macro no matter how it was inherited
# (CMAKE_CXX_FLAGS_DEBUG, directory properties, generator expressions, etc.).
# Mismatched _GLIBCXX_DEBUG changes sizeof(std::vector) and friends -> SIGSEGV.
TARGET_COMPILE_OPTIONS(${_target} PRIVATE
-U_GLIBCXX_DEBUG -U_GLIBCXX_ASSERTIONS
)
# GCC 16+ warns about DuckDB's CompressionInfo in SFINAE contexts.
# Silence it — upstream DuckDB issue, not ours to fix.
MY_CHECK_CXX_COMPILER_FLAG("-Wsfinae-incomplete")
IF(have_CXX__Wsfinae_incomplete)
TARGET_COMPILE_OPTIONS(${_target} PRIVATE -Wno-sfinae-incomplete)
ENDIF()
IF(DUCKDB_WERROR)
TARGET_COMPILE_OPTIONS(${_target} PRIVATE -Werror)
ENDIF()
ADD_DEPENDENCIES(${_target} GenError)
ENDMACRO()
[Dauer der Verarbeitung: 0.14 Sekunden, vorverarbeitet 2026-10-08]