mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
TinyXML does not ship with a pkgconfig file, and Gentoo doesn't have
it. Allow for TinyXML in standard install location.
This commit is contained in:
parent
0de2a9f64b
commit
00f7c6ba43
@ -6,7 +6,7 @@
|
|||||||
# Tinyxml_LIBRARIES - The libraries needed to use tinyxml
|
# Tinyxml_LIBRARIES - The libraries needed to use tinyxml
|
||||||
|
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
pkg_check_modules(PC_TINYXML REQUIRED tinyxml)
|
pkg_check_modules(PC_TINYXML tinyxml)
|
||||||
|
|
||||||
find_path(TINYXML_INCLUDE_DIR tinyxml.h
|
find_path(TINYXML_INCLUDE_DIR tinyxml.h
|
||||||
HINTS
|
HINTS
|
||||||
@ -26,8 +26,8 @@ find_library(TINYXML_LIBRARY tinyxml
|
|||||||
|
|
||||||
mark_as_advanced(TINYXML_INCLUDE_DIR TINYXML_LIBRARY)
|
mark_as_advanced(TINYXML_INCLUDE_DIR TINYXML_LIBRARY)
|
||||||
|
|
||||||
if(PC_TINYXML_FOUND)
|
if(TINYXML_INCLUDE_DIR)
|
||||||
set(Tinyxml_FOUND ON)
|
set(Tinyxml_FOUND ON)
|
||||||
set(Tinyxml_INCLUDE_DIRS ${TINYXML_INCLUDE_DIR})
|
set(Tinyxml_INCLUDE_DIRS ${TINYXML_INCLUDE_DIR})
|
||||||
set(Tinyxml_LIBRARIES ${TINYXML_LIBRARY})
|
set(Tinyxml_LIBRARIES ${TINYXML_LIBRARY})
|
||||||
endif(PC_TINYXML_FOUND)
|
endif(TINYXML_INCLUDE_DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user