cgal - Use CMake find_package with a custom, bugfixed file -


i have library (namely cgal). provides findmodule.cmake file third-party library not shipped cgal (namely intel tbb). unfortunately, file has bug need fix. (the bug seems related incompatible directory structures, that's not point here.)

so cmakelists.txt of project has line:

find_package( tbb ) 

this invoke findtbb.cmake provided in directory structure of cgal.

now, need fix bug in findtbb.cmake. i'd copy file , put fixed version directly project directory.

how can tell cmake use findtbb.cmake in project directory (instead of 1 provided cgal) when calling find_package?

alternative approach:

  1. copy file module directory , modify it.
  2. call find_package(tbb) before related cgal.
  3. use cmake call used find / interact cgal. if lucky, results of checks cached , work. still might not work, depending on done.

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -