-
Notifications
You must be signed in to change notification settings - Fork 39
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
Gate the library products behind CMake flags and some CMake cleanup #38
Conversation
When QDLDL is included in OSQP, only the object library is used and the libraries and executables can actually pose issues when compiling for embedded targets.
This flag isn't as generic as the previosu one.
Since the unit tests use the static library, they can't be built if we don't build the static library.
Pull Request Test Coverage Report for Build 1292497484Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@bstellato I have merged the recent changes into this PR so it is now ready for review. |
@@ -87,14 +89,16 @@ jobs: | |||
- name: Configure | |||
shell: bash | |||
working-directory: ${{ runner.workspace }}/build | |||
run: cmake --warn-uninitialized -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDFLOAT=${{ matrix.float }} -DDLONG=${{ matrix.long }} -DUNITTESTS=ON -DCOVERAGE=OFF $GITHUB_WORKSPACE | |||
run: cmake --warn-uninitialized -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DQDLDL_BUILD_SHARED_LIB=${{ matrix.shared }} -DQDLDL_BUILD_STATIC_LIB=${{ matrix.static }} -DDFLOAT=${{ matrix.float }} -DDLONG=${{ matrix.long }} -DQDLDL_UNITTESTS=ON -DCOVERAGE=OFF $GITHUB_WORKSPACE |
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.
How about changing DFLOAT
to FLOAT
or QDLDL_FLOAT
? The same comment applies to DLONG
.
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.
I could, but that would also be a breaking change so we need to note it in the release notes if we want to do that.
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.
I think I'll do that in a new PR after this one so that it is more obvious we are making that change.
This really isn't useful, and we want to get rid of it in the external interface as well.
When QDLDL is included in OSQP, only the object library is used and the libraries and executables can actually pose issues when compiling for embedded targets.
Also, cleanup the CMake file a little bit by exposing the other compile options using the CMake
option
command instead of directly setting the cache (sinceoption
will allow IDEs to see that they are options that the user can change/modify).Also change the CMake variable that the unit tests are gated on to be unique to this project.