Closed m-hilgendorf closed 1 year ago
Good catch!
Hi @nlohmann can you please assign me
Go ahead!
Hi @nlohmann I'm new to CMake can you suggest to me how to setup development environment on my local machine and how to run the project
No, I cannot assist you there. Please let me know if I should un-assign you.
Hey @nlohmann, can I do it?
Go ahead!
Description
At line 260 in [
cmake/test.cmake
]() there is this codeThe conditional check
The first condition
if(sizeof_size_t
is always TRUE, since it is comparing against the string value "sizeof_size_t". To check if the string is empty (meaning check_type_size could not return a value for size_t) it should beIf for some reason the size of size_t is unknown (for example, using exotic toolchains where stddef.h might not be visible during the initial cmake evaluation) this will cause the invocation of
cmake
to fail.Reproduction steps
Replace the call to
check_type_size
withExpected vs. actual results
Running
cmake .
should not fail.Minimal code example
No response
Error messages