Git Product home page Git Product logo

Comments (4)

nlohmann avatar nlohmann commented on May 24, 2024

It's not designed not to work, so this is a bug. Do you have any example project that exhibits this bug? Which OS are you using?

from cmake_min_version.

mwestphal avatar mwestphal commented on May 24, 2024

I've been try to use it an any simple project like this one:

project(check-engine)

cmake_minimum_required(VERSION 3.1)

find_package(f3d REQUIRED)

add_executable(check-engine main.cxx)
target_link_libraries(check-engine f3d::libf3d)

# make sure the libf3d API is compatible with C++11
set_target_properties(check-engine PROPERTIES CXX_STANDARD 11)

it fails on find_package

from cmake_min_version.

alberto-miranda avatar alberto-miranda commented on May 24, 2024

It might not be the same problem as @mwestphal, but I encountered something similar with FindPkgConfig.cmake when trying to use cmake_min_version. In my case some packages were not installed in default system locations and explicitly setting the CMAKE_PREFIX_PATH environment variable fixed the problem for me:

CMAKE_PREFIX_PATH=~/projects/foobar/prefix venv/bin/python cmake_min_version.py ~/projects/foobar/repo

Even though this worked for my case, it would be nice to be able to control what gets passed to the underlying CMakes explicitly with a script option or similar.

from cmake_min_version.

nlohmann avatar nlohmann commented on May 24, 2024

Even though this worked for my case, it would be nice to be able to control what gets passed to the underlying CMakes explicitly with a script option or similar.

Do you mean command-line options or environment variables?

from cmake_min_version.

Related Issues (10)

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.