maintainer-feedback requested: [Bug 254138] devel/cmake: aborts if CMAKE_CXX_STANDARD is set to empty

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 8 18:16:31 GMT 2021


Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-kde (Team)
<kde at FreeBSD.org> for maintainer-feedback:
Bug 254138: devel/cmake: aborts if CMAKE_CXX_STANDARD is set to empty
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254138



--- Description ---
While trying to convert a CI config for some 3rd party software I ended up
accidentally setting -DCMAKE_CXX_STANDARD= (i.e., nothing).

cmake ought to emit a useful error message for this case, but instead just
aborts:

$ cmake -GNinja -DCMAKE_CXX_STANDARD= ..
-- The CXX compiler identification is Clang 11.0.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Abort trap (core dumped)


More information about the kde-freebsd mailing list