mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 05:33:31 +01:00
cmake: Only use include directories on actual paths in check_lib
This commit is contained in:
parent
9e85e4e26b
commit
d041e60d32
@ -26,10 +26,14 @@ macro(check_lib var pc lib)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${var}_FOUND)
|
if(${var}_FOUND)
|
||||||
|
if(${var}_INCLUDE_DIRS)
|
||||||
include_directories(${${var}_INCLUDE_DIRS})
|
include_directories(${${var}_INCLUDE_DIRS})
|
||||||
|
endif()
|
||||||
# Make sure include directories for headers found using find_path below
|
# Make sure include directories for headers found using find_path below
|
||||||
# are re-added when reconfiguring
|
# are re-added when reconfiguring
|
||||||
|
if(${var}_INCLUDE)
|
||||||
include_directories(${${var}_INCLUDE})
|
include_directories(${${var}_INCLUDE})
|
||||||
|
endif()
|
||||||
_internal_message("${lib} found")
|
_internal_message("${lib} found")
|
||||||
else()
|
else()
|
||||||
find_library(${var} ${lib})
|
find_library(${var} ${lib})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user