Right now, I want to exclude my Anaconda distribution from being searched by any cmake or make files. Is that possible? If so, how should I do it?
Asked
Active
Viewed 535 times
2
-
Your Anaconda is installed in some default location or within the Path? – usr1234567 Aug 29 '17 at 16:03
-
@usr1234567 it is installed in my Desktop as anaconda3 (a directory) – Aug 29 '17 at 16:10
-
Desktop computer or the directory Desktop? By default, CMake does not search the latter. – usr1234567 Aug 29 '17 at 16:15
-
@usr1234567 Desktop directory – Aug 29 '17 at 16:16
-
1I know no ways for "exclude", but you may specify directory which will be checked before default ones. See e.g. [this question](https://stackoverflow.com/questions/34795816/hinting-findname-cmake-files-with-a-custom-directory/34797156). – Tsyvarev Aug 29 '17 at 16:27
-
@Tsyvarev Specifying the order doesn't help because the library that I am compiling will search the entire computer for a file before it searches the next one. My case is Intel MKL library in anaconda which I don't want to use. I want it to use OpenBLAS instead. – Aug 30 '17 at 01:00
-
1CMAKE_IGNORE_PATH doesn't work unless I specify that for all cmake file (fail when a cmakelist reads another cmakelist). I just want the anaconda to be excluded by every cmake files. – user10024395 Aug 30 '17 at 02:11
-
1In comments you describe many things which are *not common* for "being searched by CMake", like `the library that I am compiling will search the entire computer for a file before it searches the next one.` or `cmakelist reads another cmakelist`. It would be better to add this information **into the question post**. Also, show the way how the project searches the library. According to the specifics, what it uses is not a plain `find_package()` – Tsyvarev Aug 30 '17 at 07:29