|
|
Noted, but I can't comment on anything related to SWIG or Python.
Understood -- just trying to provide some context as to the weird thing I'm doing....
That's probably due to some "old code" leaking into the "Modern
CMake" approach. I didn't have the time yet to rewrite everything
and I'm aware that there's still something to do.
I figured this would be the root cause.
At a minimum, I'm pretty sure this should be assigned to a
target LINK_OPTIONS property.
Or, perhaps even better, a target POSITION_INDEPENDENT_CODE
property (rather than appended to a string list of library
names).
Yep, that's correct, and very likely it should be added to PRIVATE
CMake properties rather than PUBLIC, hence it would not affect your
build at all (PRIVATE properties are not included in INTERFACE_*
properties).
This makes a lot of sense.
I don't know the long-term fix for this.
I'll check if I can fix this.
Thanks much.
In the short term, I'm going to attempt something like
get_target_property(templist fltk:fltk
INTERFACE_LINK_LIBRARIES)
list(REMOVE_ITEM templist "-no-pie")
set_target_properties(fltk:fltk PROPERTIES
INTERFACE_LINK_LIBRARIES ${templist})
Or something like that.
Might work but it's only a workaround.
Exactly.
Rob
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/50f2ffde-d337-462a-a457-df9116ec8c48n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |