Skip to content

Commit

Permalink
Update FindExcelFormat.cmake to correspond new dirs structure
Browse files Browse the repository at this point in the history
  • Loading branch information
metamaker committed Apr 28, 2015
1 parent 301fa64 commit 4d1793f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FindExcelFormat.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ set(EXCELFORMAT_NAMES ExcelFormat)

# Try each search configuration.
foreach(search ${_EXCELFORMAT_SEARCHES})
find_path(EXCELFORMAT_INCLUDE_DIR NAMES ExcelFormat.h ${${search}} PATH_SUFFIXES include)
find_path(EXCELFORMAT_INCLUDE_DIR NAMES ExcelFormat/ExcelFormat.h ${${search}} PATH_SUFFIXES include)
find_library(EXCELFORMAT_LIBRARY NAMES ${EXCELFORMAT_NAMES} ${${search}} PATH_SUFFIXES lib)
endforeach()

mark_as_advanced(EXCELFORMAT_LIBRARY EXCELFORMAT_INCLUDE_DIR)

# handle the QUIETLY and REQUIRED arguments and set EXCELFORMAT_FOUND to TRUE if
# all listed variables are TRUE
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ExcelFormat REQUIRED_VARS EXCELFORMAT_LIBRARY EXCELFORMAT_INCLUDE_DIR
VERSION_VAR EXCELFORMAT_VERSION_STRING)

Expand Down

0 comments on commit 4d1793f

Please sign in to comment.