Comments (4)
It does solve it.
from cpm.cmake.
Here's JEGPFindDependencies.cmake: https://github.com/johelegp/jegp/blob/dd9e15ee4d5ec3e233d252fca091ee638777a8ce/cmake/JEGPFindDependencies.cmake.
And NEWLIBFindDependencies.cmake:
if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
message(STATUS "Downloading CPM.cmake")
file(DOWNLOAD
https://github.com/TheLartians/CPM.cmake/raw/master/cmake/CPM.cmake
${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
endif()
include(CPM)
find_package(SFML 2.5 REQUIRED COMPONENTS graphics)
CPMFindPackage(
NAME jegp_cmake_modules
GITHUB_REPOSITORY johelegp/jegp.cmake_modules
GIT_TAG master
GIT_SHALLOW True)
CPMFindPackage(
NAME jegp
GIT_REPOSITORY /mnt/sda5/documents/c++/repositories/jegp/jegp
GIT_TAG master
GIT_SHALLOW True)
CPMFindPackage(
NAME range-v3
GITHUB_REPOSITORY ericniebler/range-v3
GIT_TAG master
GIT_SHALLOW True
DOWNLOAD_ONLY True)
if(range-v3_ADDED)
add_library(range-v3::range-v3 INTERFACE IMPORTED GLOBAL)
target_include_directories(range-v3::range-v3
INTERFACE ${range-v3_SOURCE_DIR}/include)
endif()
CPMFindPackage(
NAME fmt
GITHUB_REPOSITORY fmtlib/fmt
GIT_TAG master
GIT_SHALLOW True)
CPMFindPackage(
NAME mp-units
GITHUB_REPOSITORY mpusz/units
GIT_TAG master
GIT_SHALLOW True
DOWNLOAD_ONLY True)
list(APPEND CMAKE_MODULE_PATH ${jegp_cmake_modules_SOURCE_DIR})
if(mp-units_ADDED)
add_subdirectory(${mp-units_SOURCE_DIR}/src ${mp-units_BINARY_DIR})
endif()
The dependency story of jegp_cmake_modules is the same as that of range-v3, but the former works. The only difference is that range-v3 is declared as DOWNLOAD_ONLY True
.
from cpm.cmake.
Hey thanks for the report! I think the problem was that we were incorrectly trying to download the package when we should have only been checking its availability. I've corrected that in #120. Could you test if the patched version solves the issue for you?
from cpm.cmake.
Great, thanks for verifying it! The fix is now published in version 0.24.
from cpm.cmake.
Related Issues (20)
- Pick up version from tarball name NAME-VERSION.tar.xz
- add_library() isn't aware of h-file location like add_executable() HOT 1
- GIT_SHALLOW still downloads the whole repo HOT 1
- CPM in CMake scripts: define_property command is not scriptable
- CPM_SOURCE_CACHE is ignored if SOURCE_DIR is set
- Can you help with compiling `libtins` library using CPM?
- cpm git fetch is occasionally empty HOT 1
- Cache: failure when the download is aborted and the download dir is empty HOT 3
- Add support for ExternalProject_Add() / libjpeg HOT 3
- Feature Request: Short syntax in long syntax. HOT 1
- Don't unconditionally download in get_cpm.cmake HOT 5
- Add example for using the `libuv` repository HOT 2
- CPM name of the package MUST NOT be exported target name HOT 2
- Using CPM_dep_SOURCE appears to work, but includes are not found HOT 4
- when use cache the depends lib appeared outside the project in clion HOT 2
- Users in enterprise environments require the ability to add custom URI schemes and override standard URI schemes
- Fast skip dependencies
- CMake 3.30: Calling FetchContent_Populate() is deprecated HOT 2
- Lua example is broken? HOT 1
- Shallow submodules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpm.cmake.