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 static/shared lib based on option value #104

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

vladislav-horbatiuk
Copy link

Actually build static/shared library version depending on "BUILD_SHARED_LIBS" option value.

cas4ey and others added 2 commits April 13, 2018 22:03
Actually build static/shared library version depending on "BUILD_SHARED_LIBS" option value.
set(LIBRARY_TYPE STATIC)
endif ()

add_library(easy_profiler ${LIBRARY_TYPE} ${SOURCES} resources.rc)
Copy link
Contributor

Choose a reason for hiding this comment

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

@vladislav-horbatiuk in case you didn't know, if you leave add_library without a type (without STATIC nor SHARED), it will automatically build as shared if BUILD_SHARED_LIBS is set to on/true, and will automatically build as static otherwise. This change is redundant and unecessary since cmake does exactly that already.

@dmikushin
Copy link

This should be closed (WONTFIX)

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.

4 participants