-
Notifications
You must be signed in to change notification settings - Fork 272
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
CMake: Fix message() types #879
CMake: Fix message() types #879
Conversation
If you wouldn't mind, please rebase this change over the fixes I pushed for the installation problem. The redundant message was rewritten to make it the correct message for that part of the if clause. |
92beeec
to
ebd8b62
Compare
I'm pretty sure that the comments about the paths do not match the actual behavior or that the paths aren't set as intended: With the following commands on Windows:
I end up with below files in the install folder (appdir):
With
With
With
|
Gosh, we need a spreadsheet, I think. C++ on/off, Python on/off, install_prefix set/not-set, python_install set/not-set, and the expected outcomes for all combinations... |
This PR is looking good; thanks for all the leg work, and improvements to the in-code documentation. |
8750e40
to
a9ea8cd
Compare
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.
latest push still looking good
Codecov Report
@@ Coverage Diff @@
## master #879 +/- ##
=======================================
Coverage 84.36% 84.36%
=======================================
Files 74 74
Lines 3090 3090
=======================================
Hits 2607 2607
Misses 483 483
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
For -DCMAKE_INSTALL_PREFIX=some/path - I think this is what you're proposing? And it's what I expect personally in that case .
├── OpenTimeConfig-debug.cmake
├── OpenTimeConfig.cmake
├── OpenTimelineIOConfig-debug.cmake
├── OpenTimelineIOConfig.cmake
├── include
├── bin
│ ├── otioview.exe
│ ├── dlls
│ ├── otiocat.bat
│ ├── otioconvert.bat
│ ├── otiopluginfo.bat
│ └── otiostat.bat
├── lib
├── python
│ ├── opentimelineio
│ ├── __init__.py
│ ├── dlls / pyds
│ ├── adapters
│ ├── algorithm
│ ├── console
│ ├── core
│ ├── plugins
│ ├── schema
│ ├── schemadef
│ └── OpenTimelineIOConfig.cmake
└── testutils.py |
@meshula With my proposed changes, the resulting tree looks different to your example:
|
The lib files are for linking with C++, not python, so that's why the the /lib folder is out at the root. The bin doesn't work without the python so having it where you put it makes sense to me. So with lib hoisted out, I'm cool with that layout. |
@Simran-B Have you filed a CLA for OTIO? |
@meshula Yes to CLA, #808 (comment) I'm still confused regarding the folder structure. Is the |
The cxx-libs is intended as a C++ SDK. It's not intended as a run time environment. There's a bin inside site-packages/opentimelineio which is where runtime stuff also lands, including copies of the dlls/dylibs, as sisters to the python bits. With regards to the structure of the installation, there is also this new issue, related: (#885) This PR is morphing into something different than the original intent :) Perhaps the best thing to do is to separate installation structure, from message syntax fixes. The message fix is perfectly fine and ready to land, so I suggest we can get that landed as step one, and as step two, tidy up and finalize the build structure and the variables to control it. |
this PR should resolve the structure: |
9eb5f50
to
a34b5e4
Compare
Good point, I reverted the change to the comment about install paths, so that it includes the message() type fix and some whitespace/capitalization improvements only. |
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.
lgtm
Summarize your change.
RemovedD
from${DOTIO_PYTHON_INSTALL_DIR}
:
by=
in message text.Colon is used for type annotation in CMake's syntax, like
-DOTIO_DEPENDENCIES_INSTALL:BOOL=OFF