Skip to content

Commit

Permalink
pyFTLK include/library path fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Aug 15, 2024
1 parent 943e34d commit 275177f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmake/patches/pyFLTK-patch/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ def fltk_config(dir):

for inc in inc_list:
if inc[:2] == '-I':
include=inc[3:-1]
print('Adding include',include)
needed_includes.append(include)
if inc[2] == "'":
needed_includes.append(inc[3:-1])
else:
needed_includes.append(inc[2:])
if inc.find("_REENTRANT") >= 0:
doMulti = True
print("fltk-config includes: ", needed_includes)
Expand All @@ -203,7 +204,10 @@ def fltk_config(dir):
if lib[:2] == '-l':
needed_libraries.append(lib[2:])
if lib[:2] == '-L':
needed_directories.append(lib[2:])
library = lib[2:]
if lib[2] == "'":
library = lib[3:-1]
needed_directories.append(library)
print("fltk-config link paths: ", needed_directories)
print("fltk-config link libraries: ", needed_libraries)

Expand Down

0 comments on commit 275177f

Please sign in to comment.