Use _CFLAGS_OTHER for compiler definitions
`PC_LIBTORRENT_RASTERBAR_CFLAGS` not only gives you the definitions, but also includes the include path flags (`-I...`). This causes problesm when passing the result to `target_compile_definitions`. The resulting compiler command would then look something like this: /usr/bin/c++ -D-I/home/... This change uses `PC_LIBTORRENT_RASTERBAR_CFLAGS_OTHER` instead which does not contain the include path flags.
This commit is contained in:
parent
8da635d1f5
commit
168ec6b516
|
@ -24,7 +24,7 @@ if(LibtorrentRasterbar_USE_STATIC_LIBS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PC_LIBTORRENT_RASTERBAR_FOUND)
|
if(PC_LIBTORRENT_RASTERBAR_FOUND)
|
||||||
set(LibtorrentRasterbar_DEFINITIONS ${PC_LIBTORRENT_RASTERBAR_CFLAGS})
|
set(LibtorrentRasterbar_DEFINITIONS ${PC_LIBTORRENT_RASTERBAR_CFLAGS_OTHER})
|
||||||
else()
|
else()
|
||||||
if(LibtorrentRasterbar_CUSTOM_DEFINITIONS)
|
if(LibtorrentRasterbar_CUSTOM_DEFINITIONS)
|
||||||
set(LibtorrentRasterbar_DEFINITIONS ${LibtorrentRasterbar_CUSTOM_DEFINITIONS})
|
set(LibtorrentRasterbar_DEFINITIONS ${LibtorrentRasterbar_CUSTOM_DEFINITIONS})
|
||||||
|
|
Loading…
Reference in New Issue