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:
- copy file module directory , modify it.
- call
find_package(tbb)
before related cgal. - use cmake call used find / interact cgal. if lucky, results of checks cached , work. still might not work, depending on done.
Comments
Post a Comment