Правка для ОС Эльбрус

This commit is contained in:
Andrei Astafev 2020-05-18 19:33:26 +03:00
parent 23be253a8d
commit a6bb734f49

View File

@ -1,11 +1,12 @@
include(WriteCompilerDetectionHeader)
if(${CMAKE_VERSION} VERSION_GREATER "3.6.0")
include(WriteCompilerDetectionHeader)
set(OUTPUT_FILE ${CMAKE_BINARY_DIR}/include/compiler_features.hpp)
if(CMLIB_GENERATED_HEADERS_PATH)
set(OUTPUT_FILE ${CMAKE_BINARY_DIR}/include/compiler_features.hpp)
if(CMLIB_GENERATED_HEADERS_PATH)
set(OUTPUT_FILE ${CMLIB_GENERATED_HEADERS_PATH}/compiler_features.hpp)
endif()
endif()
write_compiler_detection_header(
write_compiler_detection_header(
FILE ${OUTPUT_FILE}
PREFIX ${CMLIB_PROJECT_NAME_CANONICAL}
COMPILERS GNU Clang MSVC Intel
@ -20,4 +21,5 @@ write_compiler_detection_header(
cxx_digit_separators
cxx_range_for)
unset(OUTPUT_FILE)
unset(OUTPUT_FILE)
endif()