-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable shared library build and other options with cmake #147
Comments
According to https://stackoverflow.com/questions/16851084/how-to-list-all-cmake-build-options-and-their-default-values, the ways to do it include:
|
Shared lib is built unconditionally: Line 3 in e1c40df
Static lib is built for non-windows builds: Line 12 in e1c40df
@papadop would adding support for disabling the shared lib be straightforward? |
Added a separate issue: #148 |
@pguio : could you elaborate? |
I was thinking of the options --enable-threadsafe and --with-tbb primarily But looking at the configure options, I can also mention boost serialisation options --enable-serialization and --with-boost*, and for benchmarks the option --with-blas |
Boost serialisation is handled: Line 28 in e1c40df
TBB is handled: Line 6 in e1c40df
Threadsafe is here: Line 4 in e1c40df
no trace of --with-blas, @papadop @pguio: added a separate issue - #149 |
CMake has stuff build into it allowing the user to choose shared or
static. As long as the Blitz++ CMake build follows the CMake conventions,
this should "just happen."
https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html
…On Thu, Oct 3, 2019 at 11:34 AM Sylwester Arabas ***@***.***> wrote:
Boost serialisation is handled:
https://github.com/blitzpp/blitz/blob/e1c40dfbc0f2a50b817f815320ede4de63ddd5ff/blitz/CMakeLists.txt#L28
TBB is handled:
https://github.com/blitzpp/blitz/blob/e1c40dfbc0f2a50b817f815320ede4de63ddd5ff/blitz/CMakeLists.txt#L6
Threadsafe is here:
https://github.com/blitzpp/blitz/blob/e1c40dfbc0f2a50b817f815320ede4de63ddd5ff/blitz/CMakeLists.txt#L4
no trace of --with-blas, @papadop <https://github.com/papadop> @pguio
<https://github.com/pguio>: added a separate issue - #149
<#149>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#147?email_source=notifications&email_token=AAOVY57AGRC74R3L735TV5DQMYGIFA5CNFSM4I5C2DUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAITJIY#issuecomment-537998499>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOVY53H6ZPZTMWK2X55EADQMYGIFANCNFSM4I5C2DUA>
.
|
Hi everybody, Last week I pushed a PR to build static library under Windows, and manage exported files in relation.
|
Dear all, I was wondering whether the issue to disable shared library build had ever been addressed? I can't seem to be able to build with disabled shared library. I have tried with the cmake option BUILD_SHARED_LIBS=OFF without success. |
Hello,
I tried to install the latest autotools free version using cmake and I can't figure out how to disable building the shared library.
I tried
cmake -DBUILD_SHARED_LIBS=false -DBUILD_STATIC_LIBS=true ..
but it didn't do anything.
Any idea?
More generally is there a way to see the available configuration variables (something like configure --help)? And have all the options regarding threading been ported to cmake? I cannot figure out how to generate benchmarks/plot_benchmarks.m from benchmarks/plot_benchmarks.m.in with cmake
Thank you,
Patrick
The text was updated successfully, but these errors were encountered: