-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: operator '!' has no right operand (ONLY_C_LOCALE) #589
Comments
This is a bug in the build system. Search for " |
You're right, thanks for looking into it! |
Will need to reopen this. Can it be that the faulty definition comes from target_compile_definitions( date INTERFACE
#To workaround libstdc++ issue https://github.com/HowardHinnant/date/issues/388
ONLY_C_LOCALE=$<IF:$<BOOL:${COMPILE_WITH_C_LOCALE}>,1,0>
$<$<BOOL:${DISABLE_STRING_VIEW}>:HAS_STRING_VIEW=0> ) in date's |
Could be. I don't really know CMake and personally avoid it whenever I can. If you've got a fix for this, I'd be happy to take it. For my use cases CMake causes far more problems than it solves. If you just need date.h, then there is no installation other than just including it. For tz.h, here are the build instructions I recommend and use: https://howardhinnant.github.io/date/tz.html#Installation |
I need to create a Debian build for date which includes |
Okay, in the output INTERFACE_COMPILE_DEFINITIONS "ONLY_C_LOCALE=\$<IF:\$<BOOL:OFF>,1,0>;\$<\$<BOOL:OFF>:HAS_STRING_VIEW=0>" which looks really fishy. This should probably be INTERFACE_COMPILE_DEFINITIONS "ONLY_C_LOCALE=0" |
I get some weird errors when trying to compile with date.h:
(For full details: https://launchpadlibrarian.net/488835127/buildlog_ubuntu-focal-amd64.waybar_0.9.2-202007161902-0fe0a856-1focal1_BUILDING.txt.gz.)
Seems like the
ONLY_C_LOCALE
is not defined, but I seetowards the top of
date.h
.Any idea what might be wrong?
The text was updated successfully, but these errors were encountered: