[PATCH] Add option to use static external BLAS library

Post here if you have problem using the CMAKE build process

[PATCH] Add option to use static external BLAS library

Postby GArik_ » Thu Apr 14, 2011 2:46 pm

Hi, forum.

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
@@ -84,6 +85,7 @@
 # User did not provide a BLAS Library but specified to search for one
   find_package( BLAS )

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.
Posts: 1
Joined: Thu Apr 14, 2011 11:54 am

Re: [PATCH] Add option to use static external BLAS library

Postby admin » Fri Apr 15, 2011 12:10 pm

Thanks for the PS!!! I completely forgot about it!
We will look into your patch and get back to you very (very) soon.
Site Admin
Posts: 558
Joined: Wed Dec 08, 2004 7:07 pm

Return to CMAKE

Who is online

Users browsing this forum: No registered users and 1 guest