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

build shared library, allow system install #185

Closed
wants to merge 1 commit into from

Conversation

mhwombat
Copy link

These changes will

  1. Address Issue cmake install option? #182 by allowing the user to install the library.

  2. Allow the user to create a shared library instead of a static library as follows:

    cmake -DRC_SHARED_LIBRARY=ON .

You may prefer some other way of doing this, so feel free to reject this pull request.

@mhwombat
Copy link
Author

This also has some overlap with Issue #123.

@janisozaur
Copy link
Contributor

I don't see point of adding this option. BUILD_SHARED_LIBS works as expected and the option you suggest only breaks that.

@@ -82,3 +89,5 @@ if (RC_ENABLE_EXAMPLES)
endif()

add_subdirectory(extras)

install(TARGETS rapidcheck DESTINATION /usr/lib)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing newline

@janisozaur
Copy link
Contributor

For installing you may want to use GNUInstallDirs rather than hardcoding the path in such way. It is far more portable.

@mhwombat
Copy link
Author

I don't see point of adding this option. BUILD_SHARED_LIBS works as expected and the option you suggest only breaks that.

Ah, I didn't know that. Thanks.

@mhwombat mhwombat closed this Mar 14, 2018
@fkromer
Copy link

fkromer commented Apr 3, 2018

@mhwombat Is BUILD_SHARED_LIBS still the recommended way to go here? There seem to be quite some issues and PRs which address this... Probably a hint in the README about this would help to prevent people issueing the same thing over and over again.

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.

3 participants