FLTK logo

Re: [fltk.coredev] FLTK Cairo builds (autoconf + CMake) - [General Use]

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.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: FLTK Cairo builds (autoconf + CMake) - [General Use] Albrecht Schlosser Mar 03, 2021  
 
On 3/3/21 1:34 PM 'MacArthur, Ian (Leonardo, UK)' via fltk.coredev wrote:
This reply is going off-topic a bit, but:

Is there a difference between fltk-config generated by configure vs CMake?

Under mingw, there is - but I wonder if this is a more generic issue?

Yes, I think it's not only MinGW.

In particular the "--optim" options are not set in the cmake generated file, but are set in the autoconf generated file.

But... I do wonder if all of the cmake build is ignoring the optim settings anyway, so what is in the fltk-config does match how the lib was actually built (but not how we wanted the lib to be built, in essence.)

I can tell you that the CMake builds honor the "OPTION_OPTIM" flags in the build, I'm often using this option in cmake-gui to add compiler flags like "-Wno-deprecated-declarations" and others. This works fine.

The OPTION_OPTIM flags are however not initially populated by our CMake build files as the equivalent flags are in configure (with flags related to debugging or not). In CMake there are other means (for instance CMAKE_CXX_FLAGS[_config] where '_config' can be '_Debug' etc.) to set the compiler debug or no-debug flags, respectively.

That said, we need a way to "export" these or equivalent debug flags to fltk-config which is supposedly the only missing point here. It's just not done right now.

Sorry, I think you asked this already but I never came to doing it. I should. Please remind me again later or open a GitHub Issue, maybe...

--
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/da0a9003-3abf-3c46-551c-c18719f56e83%40online.de.
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'.