Re: Compiling on Windows without unneccessary includes ?

Bob Friesenhahn <[email protected]> Mon, 30 Mar 2020 10:14:13 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Mon, 30 Mar 2020, Pro Turm wrote:

> While compiling on Windows I noticed that
>
> jpeg.c/png.c are referencing files to GM/jpeg/ /png...
> so why not write out the includes
>
> jpeg/jpeglib.h
> ..
> lcms/include/lcms.h
>
> instead of adding additionally
>
> /I jpeg/ /I lcms/include at the command line?
>
> It seems to me more natural ... so why not replacing the places with it?

The reason for this is that it matches recommended include paths for 
the rest of the world and also matches the header file inclusion used 
by those projects, and projects using those projects.

The Visual Studio build is an abnormality.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt