On 25. Aug, 2010, at 18:57 , Johny wrote:

> Hey,
> 
> I was trying to use the SYSTEM option in the include_directories command , 
> however it does not seem to work on the MACOSX platform. So i wrote a little 
> fix which basically replaces all the -I${foldername} with -isystem 
> ${foldername}. However these commands need to be executed after my makefiles 
> are generated and i wud like to not have the user execute another cmake 
> script before running make. Is it possible?
> 
> Cheers,
> Johny

If you want *all* -I to be replaced by -isystem, simply set the 
CMAKE_INCLUDE_FLAG_C and CMAKE_INCLUDE_FLAG_CXX variables to -isystem.

Michael

_______________________________________________
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

Reply via email to