BUILD_SHARED_LIBS vs BUILD_SHARED_LIBRARIES

24 views
Skip to first unread message

qhaas

unread,
Aug 11, 2020, 10:44:26 AM8/11/20
to MAGMA User
Looks like the CMake argument used to switch between static/shared objects has either changed or there is a typo in the documentation.

Noticed warnings when using the `BUILD_SHARED_LIBRARIES` variable in the README about it not being used, and didn't find static '.a' libraries in Linux once built with it set to `off`.  However, after examining the CMakeLists.txt, it would appear the correct variable name is `BUILD_SHARED_LIBS`.  I was able to build the static libraries when using the latter variable.

Mark Gates

unread,
Aug 17, 2020, 5:31:52 PM8/17/20
to qhaas, MAGMA User
This is a typo in the readme. The correct CMake option is BUILD_SHARED_LIBS. Thanks for alerting us.

Mark

On Tue, Aug 11, 2020 at 10:44 AM qhaas <quent...@gmail.com> wrote:
Looks like the CMake argument used to switch between static/shared objects has either changed or there is a typo in the documentation.

Noticed warnings when using the `BUILD_SHARED_LIBRARIES` variable in the README about it not being used, and didn't find static '.a' libraries in Linux once built with it set to `off`.  However, after examining the CMakeLists.txt, it would appear the correct variable name is `BUILD_SHARED_LIBS`.  I was able to build the static libraries when using the latter variable.

--
You received this message because you are subscribed to the Google Groups "MAGMA User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magma-user+...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/magma-user/9cf6f243-cd44-4b61-acaf-9ab77732d186n%40icl.utk.edu.


--
Innovative Computing Laboratory
University of Tennessee, Knoxville
Reply all
Reply to author
Forward
0 new messages