Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
umfpack related changes to Makefiles and CMake scripts
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22095 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Michael Kloeppel
committed
Sep 2, 2014
1 parent
5867ce3
commit c28f099
Showing
2 changed files
with
65 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 47 additions & 47 deletions
94
SimulationRuntime/cpp/Solver/UmfPack/SuiteSparseConfig.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
set(SuiteSparse_found true) | ||
message(STATUS "Searching for UmfPack") | ||
find_file(UMFPACK_H umfpack.h HINTS "${CMAKE_SOURCE_DIR}/../../build/include/omc/c/suitesparse") | ||
if(UMFPACK_H) | ||
get_filename_component(UMFPACK_INCLUDE_DIRS "${UMFPACK_H}" PATH) | ||
message(STATUS "${UMFPACK_H}") | ||
else() | ||
message(STATUS "umfpack.h not found") | ||
set(SuiteSparse_found false) | ||
endif() | ||
find_library(UMFPACK_LIB umfpack | ||
HINTS "${CMAKE_SOURCE_DIR}/../../build/lib/omc" | ||
NO_DEFAULT_PATH | ||
DOC "The UMFPACK library") | ||
if(UMFPACK_LIB) | ||
list(APPEND SUITESPARSE_LIBRARIES ${UMFPACK_LIB}) | ||
else() | ||
message(STATUS "Could not find the UMFPACK library") | ||
set(SuiteSparse_found false) | ||
endif() | ||
|
||
find_package(BLAS) | ||
if(BLAS_FOUND) | ||
list(APPEND SUITESPARSE_LIBRARIES ${BLAS_LIBRARIES}) | ||
else() | ||
message(STATUS "Could not find the BLAS library. Please set the variable BLAS_LIBRARY to the blas library with full path") | ||
endif() | ||
|
||
|
||
find_library(AMD_LIB amd | ||
HINTS "${CMAKE_SOURCE_DIR}/../../build/lib/omc" | ||
NO_DEFAULT_PATH | ||
DOC "The AMD library") | ||
if(AMD_LIB) | ||
list(APPEND SUITESPARSE_LIBRARIES ${AMD_LIB}) | ||
else() | ||
message("Could not find the AMD library.") | ||
set(SuiteSparse_found false) | ||
endif() | ||
|
||
find_file(UFCONFIG_H UFconfig.h HINTS "${CMAKE_SOURCE_DIR}/../../build/include/omc/c/suitesparse") | ||
if(UFCONFIG_H) | ||
get_filename_component(SUITESPARSE_INCLUDE_DIRS "${UFCONFIG_H}" PATH) | ||
else() | ||
message(STATUS "UFconfig.h not found") | ||
set(SuiteSparse_found false) | ||
endif() | ||
set(SuiteSparse_found true) | ||
message(STATUS "Searching for UmfPack") | ||
find_file(UMFPACK_H umfpack.h HINTS "${CMAKE_SOURCE_DIR}/../../build/include/omc/c/suitesparse/Include") | ||
if(UMFPACK_H) | ||
get_filename_component(UMFPACK_INCLUDE_DIRS "${UMFPACK_H}" PATH) | ||
message(STATUS "${UMFPACK_H}") | ||
else() | ||
message(STATUS "umfpack.h not found") | ||
set(SuiteSparse_found false) | ||
endif() | ||
find_library(UMFPACK_LIB umfpack | ||
HINTS "${CMAKE_SOURCE_DIR}/../../build/lib/omc" | ||
NO_DEFAULT_PATH | ||
DOC "The UMFPACK library") | ||
if(UMFPACK_LIB) | ||
list(APPEND SUITESPARSE_LIBRARIES ${UMFPACK_LIB}) | ||
else() | ||
message(STATUS "Could not find the UMFPACK library") | ||
set(SuiteSparse_found false) | ||
endif() | ||
|
||
find_package(BLAS) | ||
if(BLAS_FOUND) | ||
list(APPEND SUITESPARSE_LIBRARIES ${BLAS_LIBRARIES}) | ||
else() | ||
message(STATUS "Could not find the BLAS library. Please set the variable BLAS_LIBRARY to the blas library with full path") | ||
endif() | ||
|
||
|
||
find_library(AMD_LIB amd | ||
HINTS "${CMAKE_SOURCE_DIR}/../../build/lib/omc" | ||
NO_DEFAULT_PATH | ||
DOC "The AMD library") | ||
if(AMD_LIB) | ||
list(APPEND SUITESPARSE_LIBRARIES ${AMD_LIB}) | ||
else() | ||
message("Could not find the AMD library.") | ||
set(SuiteSparse_found false) | ||
endif() | ||
|
||
find_file(UFCONFIG_H UFconfig.h HINTS "${CMAKE_SOURCE_DIR}/../../build/include/omc/c/suitesparse/Include") | ||
if(UFCONFIG_H) | ||
get_filename_component(SUITESPARSE_INCLUDE_DIRS "${UFCONFIG_H}" PATH) | ||
else() | ||
message(STATUS "UFconfig.h not found") | ||
set(SuiteSparse_found false) | ||
endif() |