Giter Club home page Giter Club logo

cmake-get's People

Contributors

gonsie avatar pfultz2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cmake-get's Issues

Installation problem

I have the following cmake script:

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

include(CMakeGet)

cmake_get(pfultz2/cget-recipes
          PREFIX ${CMAKE_CURRENT_BINARY_DIR}/deps)
cmake_get_from(${CMAKE_SOURCE_DIR}/requirements.txt
          PREFIX ${CMAKE_CURRENT_BINARY_DIR}/deps)
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_CURRENT_BINARY_DIR}/deps)

My requirements.txt has the following contents:

boost
sfml
nlohmann/json
fmtlib/fmt

When I configure the project, I get the foloowing error (after downloading a number of packages):

CMake Error at CMakeLists.txt:9 (include):
  include could not find load file:

    /boost.cmake


-- Configuring incomplete, errors occurred!
See also "/private/var/folders/d0/czkmg12j3036n3_skqccd62w0000gn/T/cget-23-35-10-DvU0L-1/build/CMakeFiles/CMakeOutput.log".
CMake Error at cmake/CMakeGet.cmake:130 (message):
  Process failed:
  COMMAND;/usr/local/Cellar/cmake/3.9.2/bin/cmake;-DCMAKE_PREFIX_PATH=/Users/tamas/work/JacobInTheDark/build/deps;-DCMAKE_INSTALL_PREFIX=/Users/tamas/work/JacobInTheDark/build/deps;-DCGET_CMAKE_ORIGINAL_SOURCE_FILE=/var/folders/d0/czkmg12j3036n3_skqccd62w0000gn/T/cget-23-35-10-DvU0L-1/download/boost_1_64_0/__cget_original_cmake_file__.cmake;-DBOOST_WITHOUT_CONTEXT=1;-DBOOST_WITHOUT_COROUTINE=1;-DBOOST_WITHOUT_COROUTINE2=1;-DBOOST_WITHOUT_PYTHON=1;/var/folders/d0/czkmg12j3036n3_skqccd62w0000gn/T/cget-23-35-10-DvU0L-1/download/boost_1_64_0;WORKING_DIRECTORY;/var/folders/d0/czkmg12j3036n3_skqccd62w0000gn/T/cget-23-35-10-DvU0L-1/build
Call Stack (most recent call first):
  cmake/CMakeGet.cmake:161 (cget_exec)
  cmake/CMakeGet.cmake:354 (cget_install_dir)
  cmake/CMakeGet.cmake:405 (cmake_get)
  cmake/CMakeGet.cmake:336 (cmake_get_from)
  cmake/CMakeGet.cmake:405 (cmake_get)
  CMakeLists.txt:11 (cmake_get_from)

I suspect that this is because there is a variable before /boost.cmake that is expanded to nothing. But I don't know where this cmake script is located to further debug.

I've pasted to full output here: https://pastebin.com/DM8C0Mb1

Avoiding rebuilds?

I'm using the script mode to install dependencies but when I add dependencies to requirements.txt, cmake-get redownloads and rebuilds everything. This is very inefficient. Is there a way to avoid the constant rebuilds?

Cmake warning : list command no longer ignores empty elements.

CMake Warning (dev) at cmake/CMakeGet.cmake:264 (list):
  Policy CMP0007 is not set: list command no longer ignores empty elements.
  Run "cmake --help-policy CMP0007" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.  List has value =
  [https:;;github.com;akheron;jansson;archive;HEAD.tar.gz].
Call Stack (most recent call first):
  cmake/CMakeGet.cmake:347 (cget_fetch)
  cmake/CMakeGet.cmake:405 (cmake_get)
  dependencies.cmake:14 (cmake_get_from)
This warning is for project developers.  Use -Wno-dev to suppress it.

The current implementation of cmake-get rises an empty list element warning each time a dependency is being pulled. This is due to the following line replacing each slash by a semicolon. This causes Cmake to generate empty list elements when parsing URL schemas (https:// turns into https:;;).

Thank you for your amazing work and the time you spend on this module ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.