Skip to content

Commit

Permalink
Added placeholder list of required C++ features
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekasprzak committed Jul 13, 2024
1 parent 16756b7 commit 30fb1ee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include (cmake/CheckCXXFeature.cmake)
include (cmake/RequireCXXFeature.cmake)
# Reference: https://en.cppreference.com/w/cpp/utility/feature_test

# Required C++ features
require_cxx_feature(__cpp_constexpr)

# Required C++ standard library features
require_cxx_feature(__cpp_lib_format)


set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -g -Wall -pedantic -Wextra -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -g -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed")
Expand Down

0 comments on commit 30fb1ee

Please sign in to comment.