Zitat von Antonio Valentino <[email protected]>:
I would like allow the user to choose whenever to use the system
version of a library or the developer provided one.
In the code snippet below the library is FFTW and its source archive is
bundled together with the project source in the COTS/FFTW sub-folder.
The problem is how to reset the cache variables once the user switches
between USE_INTERNAL_FFTW and NOT USE_INTERNAL_FFTW.
unset()
In the following code snippet there is my tentative solution.
It seems to work but it doesn't looks good to me.
The guard is good to detect a change in the user variable (which could
be given using option().
HS
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake