<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;}</style>
</head>
<body ocsi="0" fpstyle="1">
<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>
</body>
</html>