Skip to content

Commit

Permalink
Merge pull request #528 from ycollet/master
Browse files Browse the repository at this point in the history
fix empty detected include dirs
  • Loading branch information
jeremyz committed Sep 19, 2017
2 parents 27d664c + 33ec2d3 commit aa01e64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/FindHelper.cmake
Expand Up @@ -40,6 +40,9 @@ macro(FIND_HELPER prefix pkg_name header lib)
ENV ${prefix}_PATH
)
include(FindPackageHandleStandardArgs)
if (NOT "${prefix}_INCLUDE_DIRS")
set(${prefix}_INCLUDE_DIRS "-I/usr/include")
endif ()
FIND_PACKAGE_HANDLE_STANDARD_ARGS(${prefix} DEFAULT_MSG ${prefix}_LIBRARIES ${prefix}_INCLUDE_DIRS)
if(NOT "${PC_${prefix}_INCLUDE_DIRS}" STREQUAL "")
SET(${prefix}_INCLUDE_DIRS "${${prefix}_INCLUDE_DIRS};${PC_${prefix}_INCLUDE_DIRS}")
Expand Down

0 comments on commit aa01e64

Please sign in to comment.