Skip to content
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

CMakeLists.txt: don't force SHARED when building the library #18

Merged
merged 1 commit into from May 2, 2018

Conversation

tpetazzoni
Copy link
Contributor

According to the CMake documentation [1]:

If no type is given explicitly the type is STATIC or SHARED based
on whether the current value of the variable BUILD_SHARED_LIBS is
ON.

The CMakeLists.txt currently forces "SHARED", which prevents
static-only builds from working. By removing this "SHARED" statement,
we let CMake decide whether a static or shared library should be
built, depending on the value of the standard variable
BUILD_SHARED_LIBS.

[1] https://cmake.org/cmake/help/v3.0/command/add_library.html

Signed-off-by: Thomas Petazzoni thomas.petazzoni@bootlin.com

According to the CMake documentation [1]:

   If no type is given explicitly the type is STATIC or SHARED based
   on whether the current value of the variable BUILD_SHARED_LIBS is
   ON.

The CMakeLists.txt currently forces "SHARED", which prevents
static-only builds from working. By removing this "SHARED" statement,
we let CMake decide whether a static or shared library should be
built, depending on the value of the standard variable
BUILD_SHARED_LIBS.

[1] https://cmake.org/cmake/help/v3.0/command/add_library.html

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
@lipnitsk lipnitsk merged commit 7ff1e4c into lipnitsk:master May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants