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

Added cmake-stamp #539

Closed
wants to merge 1 commit into from
Closed

Conversation

radarhere
Copy link
Collaborator

All build_* functions in library_builders.sh create a *-stamp file, to prevent the function from being run more than once. For example,

function build_jpeg {
if [ -e jpeg-stamp ]; then return; fi
fetch_unpack http://ijg.org/files/jpegsrc.v${JPEG_VERSION}.tar.gz
(cd jpeg-${JPEG_VERSION} \
&& ./configure --prefix=$BUILD_PREFIX \
&& make -j4 \
&& make install)
touch jpeg-stamp
}

This PR suggests adding that feature to get_modern_cmake as well. It is slightly different - all of the code within should not be skipped on subsequent calls, as get_modern_cmake does echo a result - but the install commands can be skipped.

@radarhere
Copy link
Collaborator Author

Superseded by #542

@radarhere radarhere closed this Dec 12, 2024
@radarhere radarhere deleted the cmake_stamp branch December 12, 2024 20:53
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.

1 participant