|
|
On 2020-08-30 11:19, Greg Ercolano wrote:
>> The statement at line #59 of file CMake/options.cmake is
>> list (APPEND FLTK_CFLAGS "-isysroot ${CMAKE_OSX_SYSROOT}")
>> and this contributes to the value of CXXFLAGS at line #46 of file fltk-config which is expected to contain
>> "-isysroot" followed by the path to the SDK adequate for the running system.
Since it's adding it to the path FLTK_CFLAGS whether it's set or not,
I tried the seemingly obvious thing of making this change in CMake/options.cmake:
if (APPLE)
option (OPTION_APPLE_X11 "use X11" OFF)
option (OPTION_APPLE_SDL "use SDL" OFF)
- list (APPEND FLTK_CFLAGS "-isysroot ${CMAKE_OSX_SYSROOT}")
+ if (CMAKE_OSX_SYSROOT)
+ list (APPEND FLTK_CFLAGS "-isysroot ${CMAKE_OSX_SYSROOT}")
+ endif (CMAKE_OSX_SYSROOT)
endif (APPLE)
..which I think only adds the variable if it's defined, and leaves it out if not.
That seemed to work, as now the constructed fltk-config works.
Not sure if that's the right solution though.
--
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/a3c70868-fd6e-add0-8e32-1908fed460f6%40seriss.com.
[ Direct Link to Message ] | |
|
| |