-
Notifications
You must be signed in to change notification settings - Fork 35
Install debug libraries on Windows #1219
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
Conversation
0c4b350
to
ad081ef
Compare
24d186d
to
c4fc00a
Compare
# users can link against it in debug builds. | ||
set(CMAKE_DEBUG_POSTFIX d) | ||
|
||
add_custom_target( |
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.
could you also add comment here?
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.
Done
when UMF_USE_DEBUG_POSTFIX CMake option is set.
add_custom_command( | ||
TARGET umfd | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/bin/Debug/umfd.dll | ||
${CMAKE_BINARY_DIR}/bin/Release/umfd.dll | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/lib/Debug/umfd.lib | ||
${CMAKE_BINARY_DIR}/lib/Release/umfd.lib | ||
COMMENT "Copying debug libraries to the Release build directory") |
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.
This breaks when using Ninja generator (I assume also Unix Makefiles which is what internal builds use).
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.
Changes made in #1238
install(FILES ${CMAKE_BINARY_DIR}/bin/Debug/umfd.dll | ||
DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
install(FILES ${CMAKE_BINARY_DIR}/lib/Debug/umfd.lib | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
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.
And so do these. Also unable to install only these because there's no COMPONENT
to name.
Description
Always install debug libraries on Windows. Introduce new CMake option
UMF_USE_DEBUG_POSTFIX
for adding a "d" postfix to debug libraries names.These changes are required for intel/llvm#17512.
Checklist