8080# CORRADE_BUILD_MULTITHREADED - Defined if compiled in a way that makes it
8181# possible to safely use certain Corrade features simultaneously in multiple
8282# threads
83+ # CORRADE_BUILD_CPU_RUNTIME_DISPATCH - Defined if built with code paths
84+ # optimized for multiple architectres with the best matching variant selected
85+ # at runtime based on detected CPU features
8386# CORRADE_TARGET_UNIX - Defined if compiled for some Unix flavor
8487# (Linux, BSD, macOS)
8588# CORRADE_TARGET_APPLE - Defined if compiled for Apple platforms
100103# CORRADE_TARGET_MSVC - Defined if compiling with MSVC or Clang with
101104# a MSVC frontend
102105# CORRADE_TARGET_MINGW - Defined if compiling under MinGW
106+ # CORRADE_CPU_USE_IFUNC - Defined if GNU IFUNC is allowed to be used
107+ # for runtime dispatch in the Cpu library
103108# CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT - Defined if PluginManager
104109# doesn't support dynamic plugin loading due to platform limitations
105110# CORRADE_TESTSUITE_TARGET_XCTEST - Defined if TestSuite is targeting Xcode
210215# <metadata file>
211216# <sources>...)
212217#
213- # Unline the above version this puts everything into ``<debug install dir>`` on
218+ # Unlike the above version this puts everything into ``<debug install dir>`` on
214219# both DLL and non-DLL platforms. If ``<debug install dir>`` is set to
215220# :variable:`CMAKE_CURRENT_BINARY_DIR` (e.g. for testing purposes), the files
216221# are copied directly, without the need to perform install step. Note that the
@@ -319,6 +324,7 @@ set(_corradeFlags
319324 BUILD_STATIC
320325 BUILD_STATIC_UNIQUE_GLOBALS
321326 BUILD_MULTITHREADED
327+ BUILD_CPU_RUNTIME_DISPATCH
322328 TARGET_UNIX
323329 TARGET_APPLE
324330 TARGET_IOS
@@ -327,10 +333,12 @@ set(_corradeFlags
327333 TARGET_WINDOWS_RT
328334 TARGET_EMSCRIPTEN
329335 TARGET_ANDROID
330- # TARGET_X86 etc and TARGET_LIBCXX are not exposed to CMake as the meaning
331- # is unclear on platforms with multi-arch binaries or when mixing different
332- # STL implementations. TARGET_GCC etc are figured out via UseCorrade.cmake,
333- # as the compiler can be different when compiling the lib & when using it.
336+ # TARGET_X86 etc, TARGET_32BIT, TARGET_BIG_ENDIAN and TARGET_LIBCXX etc.
337+ # are not exposed to CMake as the meaning is unclear on platforms with
338+ # multi-arch binaries or when mixing different STL implementations.
339+ # TARGET_GCC etc are figured out via UseCorrade.cmake, as the compiler can
340+ # be different when compiling the lib & when using it.
341+ CPU_USE_IFUNC
334342 PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT
335343 TESTSUITE_TARGET_XCTEST
336344 UTILITY_USE_ANSI_COLORS)
0 commit comments