|
|
On 8/31/20 8:35 AM Manolo wrote:
About cmake creating 2 distinct fltk-config files:
On Monday, August 31, 2020 at 2:16:53 AM UTC+2 Albrecht Schlosser wrote:
On 8/29/20 5:15 PM Greg Ercolano wrote:
> If we need the one in bin for an eventual 'make install' by the
user,
> perhaps it can be moved somewhere else with a different name until
> it's actually installed, so people don't get confused and use the
wrong one.
Sure, we could move it elsewhere, but that wouldn't help much WRT
confusing people since we'd still have two distinct files.
Would it be possible to give the copy in BUILD/bin/ a different name
until it's installed?
Short answer: yes.
Long answer follows (no need to read unless you're really interested):
Either that (another name) or even another directory as suggested by
Greg. One problem I'm still working on is the multi-config build feature
of IDE's like Xcode, Visual Studio, and maybe others.
Since we have two or more different build types (Debug, Release, ...) we
can't create `fltk-config` statically at configure time as it is done
now. We must either postpone creating it at build time or even later at
installation time. I don't know what the final solution will be, but
I'll try to take care of the concerns regarding multiple instances of
fltk-config.
Some preliminary thoughts:
(1) the fltk-config file to be used in the build tree may need to be
created in the specific build directory, i.e. for instance in Xcode builds:
- BUILD/bin/Debug/fltk-config
- BUILD/bin/Release/fltk-config
- etc. for more build types
For single config builds (Makefiles, Ninja, ...) this would collapse to
- BUILD/bin/fltk-config
Note that this is different from now where the file to be used with the
build tree is:
- BUILD/fltk-config
This seems to be wrong from my POV of today.
This fltk-config file would most likely have to be created during the
build process (`make` ...) rather than at configure time (same as the
macOS wrapper scripts).
(2) the fltk-config file to be installed can be created elsewhere or
maybe only at `install` time. We have other files in the folder `etc`
(CMake config files to be installed). This is a possible place but maybe
not optimal.
I still need to find out how this can all be done to be able to support
both single- and multi-config builds and to avoid confusion.
--
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/394a4391-6b81-59ee-8f74-66b015cdd6ee%40online.de.
[ Direct Link to Message ] | |
|
| |