-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: support basic dual includes #2804
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ endif() | |
|
||
project(test_subdirectory_target CXX) | ||
|
||
add_subdirectory(${PYBIND11_PROJECT_DIR} pybind11) | ||
add_subdirectory("${pybind11_SOURCE_DIR}" pybind11) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How are these two variables different? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is now the same name as the original variable, rather than being renamed, so it works when added from the main file as well. |
||
|
||
add_library(test_subdirectory_target MODULE ../main.cpp) | ||
set_target_properties(test_subdirectory_target PROPERTIES OUTPUT_NAME test_cmake_build) | ||
|
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.
@bstaletic this is the important bit.
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.
Ah, that makes sense!