only keep the QUIET flag for OpenGL package search#5055
only keep the QUIET flag for OpenGL package search#5055christian-rauch wants to merge 1 commit intoPointCloudLibrary:masterfrom
Conversation
6ba12aa to
6d9a880
Compare
|
@larshg I fixed the macOS build by removing the |
|
@christian-rauch Could you explain what this pull request is intended to fix? For example, do you experience a build error without this change? |
I am getting a "build error" when OpenGL is not installed.
You can use both in parallel, but I am not sure what the effect is.
Yes, this is the way to check for the "modern" OpenGL stack (https://cmake.org/cmake/help/latest/module/FindOpenGL.html) where the OpenGL and windowing implementation are separated. |
Are you aware of the option Line 393 in c1835f4 If you turn that off, you should be able to build successfully even if OpenGL is not installed. So I guess the question is: if WITH_OPENGL=TRUE, should the build fail if OpenGL is not installed or should it be treated as optional? I think I would tend towards the former. However, we could create a third option next to TRUE and FALSE that means "use OpenGL if available and build PCL components depending on it, but if it is not available, quietly continue". Would be interesting to hear your opinion on the usefulness of this
Which check for
Unless I misunderstood the documentation of FindOpenGL, simply adding |
I didn't know of
If OpenGL is requested (
Still, checking for
That's correct. I overlooked that PCL is using the old/legacy |
6d9a880 to
4304658
Compare
|
@mvieth Can you review this again? |
For finding OpenGL, both
QUIETandREQUIREDare defined. This is contradicting. SinceOPENGL_FOUNDis explicitly checked, the OpenGL packages can be optional and thus only set toQUIET.I am also adding the components OpenGL EGL for "modern OpenGL" (see https://cmake.org/cmake/help/latest/module/FindOpenGL.html).
Edit:
Commit 0e0f2c4 added
REQUIREDtoQUIET.