Giter Site home page Giter Site logo

Comments (11)

blindij avatar blindij commented on August 30, 2024

My motivation for TBB was to show that you could test a library/package in three steps:

  1. Download and unpack
  2. Go looking for the Config.cmake
  3. Use it by hinting to find_package()about the path the Config.cmake

This is not completely true, since you must refer to the package name either by name (TBB::tbb) or
variable ${TBB_IMPORTS}, and you must at least look at README to find the name of the variable.

from cmake.

bast avatar bast commented on August 30, 2024

OK I will have a careful look. Of course I don't want to remove a good example. So what is it that we try to achieve precisely in this exercise? I hope this is not a silly question: I would really like that we are clear about the goal of this and then we can assess whether this is a good example.

from cmake.

bast avatar bast commented on August 30, 2024

Because my feeling was that we want to demonstrate how find_package works. But let us sharpen the goal first.

from cmake.

blindij avatar blindij commented on August 30, 2024

You want to try out a package/library from somebody else. find_package() ease the process, but you need to know where to look( use of the hint) and you need to know the name of the library in CMake context. In the TBB case, it is TBB::tbb or ${TBB_IMPORTS}

from cmake.

bast avatar bast commented on August 30, 2024

OK so the goal of this exercise is to demonstrate find_package to locate an external package and we want to demonstrate that it might be necessary to provide hints to the find functions? Because if yes, then I think we can demonstrate this with some super simple example and can possibly avoid explaining what TBB is and going into TBB internals (like TBB_IMPORTS).

from cmake.

blindij avatar blindij commented on August 30, 2024

Yes.

from cmake.

bast avatar bast commented on August 30, 2024

OK let's see what I come up with - I use this week as CMake week and will go through entire lesson and try to simplify and motivate more.

from cmake.

blindij avatar blindij commented on August 30, 2024

What about starting with CMake, and then do the Makefile, since we use Make to build anyway? Hence make becomes a kind of detour, before we go deeper into make.

from cmake.

bast avatar bast commented on August 30, 2024

The motivation for starting with Make was to cater to Python/R folks and to understand why Makefiles exist and then arrive at limitations of Make and motivate CMake. Then some Python/R participants may switch off. If we do it the other way, my worry is that we might not reconnect to the interpreted language folks at all.

from cmake.

bast avatar bast commented on August 30, 2024

My goal was to show: Make is for everybody, CMake is for all those who compile.

from cmake.

bast avatar bast commented on August 30, 2024

I think this is solved/outdated now since the lesson evolved a lot since.

from cmake.

Related Issues (17)

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.