Rename META_REQUIRED_FEATURES

Because those features are actually not required.
consistent_macro_prefix v4.14.2
Martchus 5 years ago
parent 52734ebf51
commit b77607f3e0
  1. 2
      CMakeLists.txt
  2. 4
      cmake/modules/BasicConfig.cmake

@ -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)

@ -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()

Loading…
Cancel
Save