Skip to content

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