Include possibility that uppercase is used
This commit is contained in:
@@ -159,9 +159,11 @@ macro (find_and_append_package_to prefix name)
|
||||
list (APPEND ${prefix}_INCLUDE_DIRS ${${NAME}_INCLUDE_PATH})
|
||||
endif (DEFINED ${name}_INCLUDE_PATH)
|
||||
# some packages define only _DIR and not _DIRS (Hi, Eigen3!)
|
||||
if (NOT DEFINED ${name}_INCLUDE_DIRS)
|
||||
list (APPEND ${prefix}_INCLUDE_DIRS ${${prefix}_INCLUDE_DIR})
|
||||
endif (NOT DEFINED ${name}_INCLUDE_DIRS)
|
||||
if (DEFINED ${name}_INCLUDE_DIR)
|
||||
list (APPEND ${prefix}_INCLUDE_DIRS ${${name}_INCLUDE_DIR})
|
||||
elseif (DEFINED ${NAME}_INCLUDE_DIR)
|
||||
list (APPEND ${prefix}_INCLUDE_DIRS ${${NAME}_INCLUDE_DIR})
|
||||
endif (DEFINED ${name}_INCLUDE_DIR)
|
||||
endif ("${var}" STREQUAL "INCLUDE_DIRS")
|
||||
# cleanup lists
|
||||
if ("${var}" STREQUAL "LIBRARIES")
|
||||
|
||||
Reference in New Issue
Block a user