
include(WriteCompilerDetectionHeader)

set(CMAKE_CXX_STANDARD_REQUIRED 11)
set(CMAKE_CXX_STANDARD 11)

get_property(CMAKE_CXX_KNOWN_FEATURES GLOBAL PROPERTY CMAKE_CXX_KNOWN_FEATURES)

write_compiler_detection_header(
  FILE "${GENERATED_SOURCE_DIR}/scp_compiler_detection.h"
  PREFIX SCP
  COMPILERS AppleClang Clang GNU MSVC
  FEATURES ${CMAKE_CXX_KNOWN_FEATURES}
  VERSION 3.2
)
