mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 07:41:15 +00:00
62a4a67dc5
Provide a function to write a portable header to detect compiler features. Generate a preprocessor #error for unknown compilers and compiler versions whose features are not yet recorded. This error condition might be relaxed in the future, but for now it is useful for verification of expectations.
11 lines
208 B
CMake
11 lines
208 B
CMake
|
|
include(WriteCompilerDetectionHeader)
|
|
|
|
write_compiler_detection_header(
|
|
FILE "${CMAKE_CURRENT_BINARY_DIR}/somefile"
|
|
PREFIX PREF_
|
|
COMPILERS NOT_A_COMPILER
|
|
FEATURES cxx_final
|
|
VERSION 3.1
|
|
)
|