Skip to content
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

Fix F3D build when added as a subproject #899

Merged
merged 4 commits into from
Jul 7, 2023
Merged

Conversation

Meakk
Copy link
Member

@Meakk Meakk commented Jul 6, 2023

If F3D is added as a subproject using add_subdirectory, many things are not working because of the usage of CMAKE_SOURCE_DIR which refer to the top level directory. Let's use F3D_SOURCE_DIR instead.
FYI the variable F3D_SOURCE_DIR is defined automatically when calling project(F3D)
Since CMake 3.21 there is a PROJECT_IS_TOP_LEVEL. We can use that too for the plugins.

@Meakk Meakk self-assigned this Jul 6, 2023
@mwestphal
Copy link
Contributor

Ok but why should F3D support that ?

@mwestphal
Copy link
Contributor

If we want to support that we need to test it

@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Merging #899 (15c1ca7) into master (07d9cc2) will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #899      +/-   ##
==========================================
+ Coverage   96.09%   96.12%   +0.03%     
==========================================
  Files         113      113              
  Lines        6472     6533      +61     
==========================================
+ Hits         6219     6280      +61     
  Misses        253      253              

see 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Meakk Meakk merged commit 3f713f3 into f3d-app:master Jul 7, 2023
@Meakk Meakk deleted the fix-cmake branch July 7, 2023 09:24
spianmo added a commit to spianmo/f3d that referenced this pull request Jul 11, 2023
spianmo added a commit to spianmo/f3d that referenced this pull request Jul 11, 2023
mwestphal pushed a commit that referenced this pull request Feb 10, 2024
mwestphalnew pushed a commit to mwestphalnew/f3d that referenced this pull request Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants