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 BUILD_CLONE_SUBMODULES CMake config option #76

Merged
merged 12 commits into from
Sep 29, 2020

Conversation

aggarw13
Copy link
Contributor

With submodule configuration changes made in #75, the BUILD_CLONE_SUBMODULES CMake config became disfynctional (as it uses the git submodule update --recursive command).

This PR updates the CMake logic to use git submodule update --checkout --init command to fix the CMake config option.
Also, this PR changes the default value of BUILD_CLONE_SUBMODULES to be OFF to avoid always auto-cloning the CMock submodule.

yourslab
yourslab previously approved these changes Sep 28, 2020
@@ -3,7 +3,7 @@ macro( clone_cmock )
find_package( Git REQUIRED )
message( "Cloning submodule CMock." )
execute_process( COMMAND rm -rf ${CMOCK_DIR}
COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive ${CMOCK_DIR}
COMMAND ${GIT_EXECUTABLE} submodule update checkout --init --recursive ${CMOCK_DIR}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be --checkout?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we take out the clone you added to the ci.yml, we could test this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be --checkout?

Yes, that is how the update = none option is overriden

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we take out the clone you added to the ci.yml, we could test this?

Sure

@aggarw13 aggarw13 merged commit 42889f7 into FreeRTOS:master Sep 29, 2020
@aggarw13 aggarw13 deleted the update-cmake-submodule-option branch September 29, 2020 01:51
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.

4 participants