FLTK logo

[fltk/fltk] Avoiding wrong includes (only include from FLTK's repository not from CMAKE_PREFIX_PATH) (Issue #962)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] Avoiding wrong includes (only include from FLTK's repository not from CMAKE_PREFIX_PATH) (Issue #962) Gonzalo Garramuño 11:14 Apr 28  
 

Is your feature request related to a problem? Please describe.

This is a feature request albeit I consider it a bug, as FLTK is the only library that exhibits this.

When building FLTK with ExternalProject_Add and setting CMAKE_PREFIX_PATH to the same install location of CMAKE_INSTALL_PREFIX, FLTK will read the .H files from CMAKE_INSTALL_PREFIX first instead of those from its own checkout FL directory, leading often to having the .H and .cxx files become out of sync.

I am using FLTK

  • Version 1.4.0 master

Describe the solution you'd like
FLTK should build with its contents only putting its internal Fl/ direcory first in the list of include directories, so FLTK builds in a sandbox.
I think something is broken in the CMake build files that makes FLTK not do this.

Describe alternatives you've considered
None. Currently I am being forced to remember to do:

rm -rf $BUILD_DIR/include/FL

but that is error prone.

Additional context
Thank you Albrecht and sorry for drawing you insane with CMake requests 👍


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/962@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.