|
|
On 11/18/22 13:48 imacarthur wrote:
On Friday, 18 November 2022
at 12:34:50 UTC Gonzalo wrote:
Compiling
on macOS:
$ cd FLTK_DIR
$ mkdir build
$ cd build
$ cmake .. -D FLTK_BUILD_EXAMPLES=ON -D FLTK_BUILD_TEST=OFF
…etc…
-- Found Threads: TRUE
CMake Error at CMake/fl_create_example.cmake:98
(FLTK_RUN_FLUID):
Unknown CMake command "FLTK_RUN_FLUID".
Call Stack (most recent call first):
examples/CMakeLists.txt:116 (CREATE_EXAMPLE)
Oh, interesting...
I do not think I have *ever* tried that combination.
Neither did I - otherwise this bug report wouldn't have come up. ;-)
I guess the crux is that the fluid stuff is typically
invoked to build the tests, but if you do not build the tests,
that means that fluid is not set up, or something?
Yes, something like that. If the tests are built a CMake macro is
included and this macro is used in the examples directory w/o
explicitly including it, hence the command was unknown.
TBH, I'd be inclined to remove the ability to inhibit the
tests, since they are Very Useful anyway...!
There's a legit reason to exclude the tests and examples (and since
a few days fluid as well) if you just want to build the bare FLTK
library for your own usage. This can for instance be useful if you
need the FLTK libs as a prerequisite in your own CMake build.
There's no need to build the tests if you never want to run them.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/6691c561-72c0-9c57-1eec-947faa84ff4c%40online.de.
[ Direct Link to Message ] | |
|
| |