-
Notifications
You must be signed in to change notification settings - Fork 459
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
Install libDispatchStubs.a if building static libraries. #489
Conversation
@swift-ci test |
src/CMakeLists.txt
Outdated
|
||
if(NOT BUILD_SHARED_LIBS) | ||
install(FILES | ||
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_${library_kind}_LIBRARY_PREFIX}DispatchStubs${CMAKE_${library_kind}_LIBRARY_SUFFIX} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are in a NOT BUILD_SHARED_LIBS
case, we can simplify this:
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}/DispatchStubs${CMAKE_STATIC_LIBRARY_SUFFIX}
which can be simplified to:
$<TARGET_FILE:DispatchStubs>
cf3f813
to
fae0282
Compare
@swift-ci test |
Did you mean "if NOT building static libraries"? |
|
So why is the test for NOT BUILD_SHARED_LIBS?
|
Because NOT BUILD_SHARED_LIBS == BUILD_STATIC_LIBS but there is no BUILD_STATIC_LIBS flag unfortunately |
Oh, that was so obvious. For some reason, I was reading that as NOT BUILD_STATIC_LIBS :-) |
Install libDispatchStubs.a if building static libraries. Signed-off-by: Kim Topley <ktopley@apple.com>
No description provided.