rogii-com / cnpm Goto Github PK
View Code? Open in Web Editor NEWThe simplest package manager for CMake-based projects
License: MIT License
The simplest package manager for CMake-based projects
License: MIT License
If downloading a package is interrupted there should be no package file in CNPM_ROOT
Try to chage description of package from call NPM_ADD_PACKAGE to package info by xml/json.
And call NPM_ADD_PACKAGE with this info.
set(
PACKAGE_NAME
${NAME}-${VERSION}-${ARCHITECTURE}-${BUILD_NUMBER}${TAG}"
)
Add separator ("-") between ${BUILD_NUMBER} and ${TAG}
If the ${TAG} contains digits, it will not be possible to get the ${BUILD_NUMBER}
there is a need to get some inforamtion about package. For example, we use msvs-2019 package that checks the build environemnt. On CI several VSs installed so we need to select the right one.
If there are already some packages in local CNPM root and they are corrupted somehow (partially downloaded, wrong checksum, etc) then:
-- stderr =
-- after extracting; status = 0
CMake Error at cmake/npm/NPM_PREPARE_PACKAGE.cmake:238 (file):
file RENAME failed to rename
D:/npm_env/tmp-36wEK/qt-5.9.9-amd64-2sdk18362_vsbt19
to
D:/npm_env/qt-5.9.9-amd64-2sdk18362_vsbt19
because: No such file or directory
Call Stack (most recent call first):
cmake/npm/CNPM_PREPARE_PACKAGES.cmake:211 (NPM_PREPARE_PACKAGE)
CMakeLists.txt:311 (CNPM_PREPARE_PACKAGES)
CMake Error at cmake/npm/CNPM_PREPARE_PACKAGES.cmake:229 (include):
include could not find load file:
D:/npm_env/qt-5.9.9-amd64-2sdk18362_vsbt19/package.cmake
Call Stack (most recent call first):
CMakeLists.txt:311 (CNPM_PREPARE_PACKAGES)
if extracting a package is interrupted there should be no package folder in CNPM_ROOT.
There may be created corrupted package folders at the moment.
architecture for packages is not specified
The CNPM_ADD_PACKAGE function is case-insensitive in the Tag field.
The string from the tag is converted to lowercase and fails to download the package.
At the moment, you must name the package in lowercase for correct operation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.