It was hard to me to find out why cmake is unable to find my ATLAS libraries. After some investigation and looking into FindBLAS.cmake I found that cmake reguires -DBLAS_STATIC=ON. I think it is a good idea to provide an option for BLAS_STATIC, so it will be visible with ccmake.
- Code: Select all
--- CMakeLists.txt 2011-03-26 04:17:13.000000000 +0300
+++ CMakeLists.txt 2011-04-14 20:58:33.471000012 +0400
@@ -66,6 +66,7 @@
# Subdirectories that need to be processed
option(USE_OPTIMIZED_BLAS "Whether or not to use an optimized BLAS library instead of included netlib BLAS" OFF)
+option(USE_STATIC_BLAS "Whether or not to use static BLAS library or shared" OFF)
# Check the usage of the user provided BLAS libraries
if(BLAS_LIBRAIRIES)
@@ -84,6 +85,7 @@
# User did not provide a BLAS Library but specified to search for one
elseif( USE_OPTIMIZED_BLAS )
+ set (BLAS_STATIC ${USE_STATIC_BLAS})
find_package( BLAS )
endif (BLAS_LIBRAIRIES)
P.S. Please don't forget to raise version number in CMakeLists.txt before releasing 3.3.1. Sometimes version number does not matter and sometimes it does.

