Rename META_REQUIRED_FEATURES

Because those features are actually not required.
This commit is contained in:
Martchus 2018-06-03 22:15:20 +02:00
parent 52734ebf51
commit b77607f3e0
2 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ set(META_APP_NAME "C++ Utilities")
set(META_APP_AUTHOR "Martchus")
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
set(META_APP_DESCRIPTION "Useful C++ classes and routines such as argument parser, IO and conversion utilities")
set(META_REQUIRED_FEATURES cxx_thread_local)
set(META_FEATURES_FOR_COMPILER_DETECTION_HEADER cxx_thread_local)
set(META_VERSION_MAJOR 4)
set(META_VERSION_MINOR 14)
set(META_VERSION_PATCH 2)

View File

@ -120,13 +120,13 @@ endif()
set(TARGET_EXECUTABLE "${CMAKE_INSTALL_PREFIX}/bin/${TARGET_PREFIX}${META_PROJECT_NAME}${TARGET_SUFFIX}")
# create header for feature detection
if (META_REQUIRED_FEATURES)
if (META_FEATURES_FOR_COMPILER_DETECTION_HEADER)
include(WriteCompilerDetectionHeader)
write_compiler_detection_header(
FILE "${CMAKE_CURRENT_BINARY_DIR}/resources/features.h"
PREFIX "${META_PROJECT_VARNAME_UPPER}"
COMPILERS GNU Clang
FEATURES ${META_REQUIRED_FEATURES}
FEATURES ${META_FEATURES_FOR_COMPILER_DETECTION_HEADER}
)
endif()