-
Notifications
You must be signed in to change notification settings - Fork 206
Fetch content #446
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
Open
flagarde
wants to merge
16
commits into
cpm-cmake:master
Choose a base branch
from
flagarde:FetchContent
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fetch content #446
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
fb703d8
Add install and FetchContent
flagarde 6b7ae0d
cmake-format
flagarde eb8461d
Fix
flagarde 0711ac1
cmake-format
flagarde a70c613
Update CMakeLists.txt
flagarde 8ae0a09
Update cmake/CPM.cmake
flagarde 3e7e6d6
Update CMakeLists.txt
flagarde d908cfe
cmake-format
flagarde d2975d0
Update CMakeLists.txt
flagarde 14bb75f
Update CMakeLists.txt
flagarde a0663be
Update CMakeLists.txt
flagarde fa5058c
Update CPM.cmake
flagarde 03027e0
Update CMakeLists.txt
flagarde deeefc3
Updates based on comments
flagarde f02381c
Updates based on comments
flagarde fbf5763
Updates based on comments
flagarde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,11 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME}) | |
else() | ||
set(CPM_RELEASE TRUE) | ||
endif() | ||
# Trick to use the find_package | ||
configure_file( | ||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake" "${CMAKE_CURRENT_BINARY_DIR}/CPM.cmake" COPYONLY | ||
) | ||
set(CPM_DIR "${CMAKE_CURRENT_BINARY_DIR}") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not really necessary. In my tests, these are not set upstream. I don't understand how but:
|
||
include(cmake/CPM.cmake) | ||
endif() | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.