-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
CMake config generates invalid compiler flag when the (optional) dependency libusb-1.0 can not be found #1406
Comments
Can you provide more information on your setup? I just tried disabling libusb and building and no warnings were generated. |
I'm working on Ubuntu 14.04. And libusb is not installed. I compiled PCL (version 1.7.2) on my own. The error occurs, when I try to compile code, that depends on PCL (pcl-common and pcl-io, I guess). I'm using CMake as build system. And CMake's function On line 618 this CMake file adds the compiler flag
The problem is that -- as the warning indicates -- the characters I could add a patch to |
I don't see any usage of such |
When I'm compiling code that depends on PCL without the (optional) dependency libusb-1.0, I get a huge number of the following warnings:
The warning comes from the token
-DDISABLE_LIBUSB-1.0
that is added to the compiler flags by PCL. The minus sign and the dot inDISABLE_LIBUSB-1.0
are not allowed for macro names.I found the place where this invalid macro definition comes from (PCLConfig.cmake.in, line 618):
When
${LIB}
isLIBUSB-1.0
, it should be changed toLIBUSB_1_0
or something similar.The text was updated successfully, but these errors were encountered: