/usr/include filtered out of include paths?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

/usr/include filtered out of include paths?

O'Grady, Paul Christopher
Hi,

We’re using cmake/anaconda, including the anaconda-delivered gcc7 compilers.  As delivered by anaconda, I believe those compilers don’t search include paths like /usr/include and library paths like /lib64 /usr/lib64.  When I try to add those paths (e.g. /usr/include to cmake's target_include_directories) it appears to me that cmake filters them out (i.e. doesn’t put them in the list).  I can get other paths to show up without a problem.  I’m guessing cmake is assuming that the compiler will add those paths automatically.  If my understanding is correct, is there a way I can disable this filtering?

I have a workaround where I can modify environment variables like CFLAGS/CXXFLAGS/LDFLAGS before running cmake, but that felt somewhat ugly.

Thanks for any thoughts you might have,

chris

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake