CMAKE only creates static libraries

Post here if you have problem using the CMAKE build process

CMAKE only creates static libraries

Postby Vahid99 » Thu Mar 31, 2016 10:32 am

Dear Lapack Users,

I am using cmake/3.2.3 on Linux to compile the shared lapacke library. I made the following changed to CMakeList.txt of lapack-3.5.0:

1. option(LAPACKE "Build LAPACKE" OFF) changed to
option(LAPACKE "Build LAPACKE" ON)

2. OPTION(BUILD_SHARED_LIBS "Build shared libraries" OFF )
OPTION(BUILD_STATIC_LIBS "Build static libraries" ON ) to

OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON )
OPTION(BUILD_STATIC_LIBS "Build static libraries" OFF )

However, after compiling, I only get static libraries. Is there something else I need for getting the shared library?

Thank you,


Vahid Askarpour
Department of Physics and Atmospheric Science
Halifax, NS Canada
Posts: 2
Joined: Wed Mar 30, 2016 2:49 pm

Return to CMAKE

Who is online

Users browsing this forum: No registered users and 2 guests