Files
keycode/cmake/check-from_chars.cmake
2025-02-27 16:18:38 +08:00

8 lines
423 B
CMake

message(STATUS "Checking that std::from_chars for floats is supported by the C++ library")
try_compile(FROM_CHARS_WORKS "${CMAKE_BINARY_DIR}" "${CMAKE_CURRENT_LIST_DIR}/check-from_chars.cpp")
if(FROM_CHARS_WORKS)
message(STATUS "Checking that std::from_chars for floats is supported by the C++ library - yes")
else()
message(STATUS "Checking that std::from_chars for floats is supported by the C++ library - NO")
endif()