Add find_library for suitesparseconfig in FindSPQR.cmake
This commit is contained in:
parent
549fdb6dca
commit
629935e4d9
@ -1,7 +1,7 @@
|
|||||||
cmake_minimum_required(VERSION 2.8.12)
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(msckf_vio)
|
project(msckf_vio)
|
||||||
|
|
||||||
add_compile_options(-std=c++11 -Wall)
|
add_compile_options(-std=c++11)
|
||||||
|
|
||||||
# Modify cmake module path if new .cmake files are required
|
# Modify cmake module path if new .cmake files are required
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake")
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake")
|
||||||
|
@ -23,10 +23,10 @@ find_library(SPQR_LIBRARIES spqr $ENV{SPQRDIR} ${LIB_INSTALL_DIR})
|
|||||||
|
|
||||||
if(SPQR_LIBRARIES)
|
if(SPQR_LIBRARIES)
|
||||||
|
|
||||||
find_library(SUITESPARSE_LIBRARY SuiteSparse PATHS $ENV{SPQRDIR} ${LIB_INSTALL_DIR})
|
find_library(SUITESPARSECONFIG_LIBRARY NAMES suitesparseconfig PATHS $ENV{SPQRDIR} ${LIB_INSTALL_DIR})
|
||||||
if (SUITESPARSE_LIBRARY)
|
if (SUITESPARSECONFIG_LIBRARY)
|
||||||
set(SPQR_LIBRARIES ${SPQR_LIBRARIES} ${SUITESPARSE_LIBRARY})
|
set(SPQR_LIBRARIES ${SPQR_LIBRARIES} ${SUITESPARSECONFIG_LIBRARY})
|
||||||
endif (SUITESPARSE_LIBRARY)
|
endif (SUITESPARSECONFIG_LIBRARY)
|
||||||
|
|
||||||
endif(SPQR_LIBRARIES)
|
endif(SPQR_LIBRARIES)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user