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
195 B
CMake
11 lines
195 B
CMake
|
|
include(WriteCompilerDetectionHeader)
|
|
|
|
write_compiler_detection_header(
|
|
FILE "${CMAKE_CURRENT_BINARY_DIR}/somefile"
|
|
PREFIX PREF_
|
|
# COMPILERS
|
|
FEATURES cxx_final
|
|
VERSION 3.1
|
|
)
|