|
|
On 3/17/24 08:09 Rob McDonald wrote:
On Sunday, March 17, 2024 at 12:07:20 AM UTC-7 Rob McDonald wrote:
I'd
like to set
HAVE_GL_GLU_H 0
Is it possible to set this from the CMake command line the
same way I set things like FLTK_BUILD_TEST
and FLTK_USE_SYSTEM_ZLIB ?
No.
When I try to pass -DHAVE_GL_GLU_H=0
to the cmake command on the command line, it does not 'take'.
Is there another way to set this?
No.
Explanation: HAVE_GL_GLU_H is an internal build variable derived
from a CMake `find*` call, stored in the CMake Cache, and "exported"
to 'config.h'. It is generally not possible to set such cache
variables to 'false' values (e.g. 0) on the commandline or via cache
variables because that triggers a new find operation in every
configure execution - until it is set to a 'true' (found) value.
Please explain what you want to achieve by setting this variable in
'config.h' which is used to build FLTK but not visible in user code.
It is used exclusively in 'src/gl_draw.cxx' and in two demo programs
(fractals and glpuzzle). The demo programs don't work if
HAVE_GL_GLU_H is 0 (they display an error message) but that's not an
issue.
Is there anything wrong with 'src/gl_draw.cxx' if HAVE_GL_GLU_H==1,
or what is your intention?
I need to understand what you really need. If you can give a
plausible reason why we should disable 'HAVE_GL_GLU_H'
although the related header file is found we might consider adding a
CMake option to disable the entire search for `GL/glu.h` in our
CMake code. Depending on your reasoning, how should we call such an
option, maybe something like "disable glu.h" or "disable GLU"?
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/386b147f-d315-4414-a3a8-49a37288b234%40aljus.de.
[ Direct Link to Message ] | |
|
| |