<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello
<br>
<br>
sometime ago I sent this email concerning the behaviour of the SYSTEM in the include_directories.
<br>
I would appreciate if someone from cmake team could look at it, as we consider this a bug in cmake, and indeed properly passing -isystem to the compiler is essential, specially in CUDA when system library flood the compilation output with warning.
<br>
<br>
Thanks. Carlos<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF151675"><font face="Tahoma" color="#000000" size="2"><b>Von:</b> Osuna Escamilla Carlos<br>
<b>Gesendet:</b> Sonntag, 14. Februar 2016 19:33<br>
<b>An:</b> cmake@cmake.org<br>
<b>Betreff:</b> isystem include of system library header with CUDA<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi everybody<br>
<br>
with cmake I have always used the SYSTEM keyword for the include_directories to include system libraries:<br>
 <br>
include_directories( SYSTEM ${Boost_INCLUDE_DIRS} )<br>
<br>
in order to pass system include directories with compiler with -isystem.<br>
The problem I have is that this does not seem to work with CUDA. <br>
<br>
In FindCUDA.cmake, it seems that -I is hardcoded<br>
<br>
  if(CUDA_NVCC_INCLUDE_DIRECTORIES)<br>
    foreach(dir ${CUDA_NVCC_INCLUDE_DIRECTORIES})<br>
      list(APPEND CUDA_NVCC_INCLUDE_ARGS -I${dir})<br>
    endforeach()<br>
  endif()<br>
<br>
So the question is am I right? Or am I assuming something wrong? <br>
If yes, it would be extremely useful if we could use the same mechanism to pass -isystem to nvcc, to avoid all the warnings from system libraries.
<br>
<br>
Thanks, Carlos</div>
</div>
</div>
</div>
</body>
</html>