2019-02-12 16:31:17 +00:00
|
|
|
include(WriteCompilerDetectionHeader)
|
|
|
|
string(TOUPPER ${PROJECT_NAME} _project_name_uppercase)
|
|
|
|
|
|
|
|
write_compiler_detection_header(
|
2019-02-12 18:40:30 +00:00
|
|
|
FILE include/compiler_features.hpp
|
2019-02-12 16:31:17 +00:00
|
|
|
PREFIX ${_project_name_uppercase}
|
|
|
|
COMPILERS GNU Clang MSVC Intel
|
|
|
|
FEATURES
|
|
|
|
cxx_nullptr
|
|
|
|
cxx_override
|
|
|
|
)
|
|
|
|
|
|
|
|
# cxx_std_11
|
|
|
|
# cxx_alignas
|
|
|
|
# cxx_alignof
|
|
|
|
# cxx_attributes
|
|
|
|
# cxx_auto_type
|
|
|
|
# cxx_constexpr
|
|
|
|
# cxx_digit_separators
|
|
|
|
# cxx_range_for
|
|
|
|
# ALLOW_UNKNOWN_COMPILERS
|
|
|
|
# ALLOW_UNKNOWN_COMPILER_VERSIONS
|
|
|
|
#install(FILES
|
|
|
|
# compiler_features.hpp
|
|
|
|
# DESTINATION include
|
|
|
|
# )
|
|
|
|
|
|
|
|
#install(FILES
|
|
|
|
# ${support_files}
|
|
|
|
# DESTINATION include/compilers
|
|
|
|
# )
|