mirror of
https://github.com/brechtsanders/xlsxio
synced 2025-03-28 21:13:24 +00:00
Add /opt/xlsxio as search location
This commit is contained in:
parent
afd5dd3ed7
commit
b3dfd27c38
@ -2,11 +2,11 @@
|
|||||||
GET_FILENAME_COMPONENT(XLSXIOREAD_ROOT "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
GET_FILENAME_COMPONENT(XLSXIOREAD_ROOT "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||||
|
|
||||||
# find library file
|
# find library file
|
||||||
FIND_LIBRARY(@XLSXIO_LIB@_LIBRARY @XLSXIO_LIB@ PATHS ${XLSXIOREAD_ROOT}/lib /usr/local/lib PATH_SUFFIXES ${CMAKE_LIBRARY_ARCHITECTURE} NO_DEFAULT_PATH )
|
FIND_LIBRARY(@XLSXIO_LIB@_LIBRARY @XLSXIO_LIB@ PATHS ${XLSXIOREAD_ROOT}/lib /opt/xlsxio/lib PATH_SUFFIXES ${CMAKE_LIBRARY_ARCHITECTURE} NO_DEFAULT_PATH )
|
||||||
SET(@XLSXIO_LIB@_LIBRARIES ${@XLSXIO_LIB@_LIBRARY} @XLSXIO_LDFLAGS@)
|
SET(@XLSXIO_LIB@_LIBRARIES ${@XLSXIO_LIB@_LIBRARY} @XLSXIO_LDFLAGS@)
|
||||||
|
|
||||||
# find include file
|
# find include file
|
||||||
FIND_PATH(@XLSXIO_LIB@_INCLUDE_DIR @XLSXIO_HEADER@ PATHS ${XLSXIOREAD_ROOT}/include /usr/local/include NO_DEFAULT_PATH)
|
FIND_PATH(@XLSXIO_LIB@_INCLUDE_DIR @XLSXIO_HEADER@ PATHS ${XLSXIOREAD_ROOT}/include /opt/xlsxio/include NO_DEFAULT_PATH)
|
||||||
SET(@XLSXIO_LIB@_INCLUDE_DIRS ${@XLSXIO_LIB@_INCLUDE_DIR})
|
SET(@XLSXIO_LIB@_INCLUDE_DIRS ${@XLSXIO_LIB@_INCLUDE_DIR})
|
||||||
|
|
||||||
IF(NOT @XLSXIO_LIB@_LIBRARY OR NOT @XLSXIO_LIB@_INCLUDE_DIR)
|
IF(NOT @XLSXIO_LIB@_LIBRARY OR NOT @XLSXIO_LIB@_INCLUDE_DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user