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