<div dir="ltr"><span>Hi all,
</span><br><br><span>I'm using QNX and cmake works fine under it, except
 for one thing. By default compilation under QNX looks like 
cross-compilation even if you work using x86 platform and compiling for 
x86 platform too.
</span><br><br><span>By default gcc does not has /<span class="">usr</span>/<span class="">include</span> directory as default directory for headers, instead it has /<span class="">usr</span>/qnx650/target/x86/<span class="">usr</span>/<span class="">include</span> directory by default for system related stuff. Many additional packages are directly installed to /<span class="">usr</span> directory and have their headers respectively at /<span class="">usr</span>/<span class="">include</span>.
</span><br><br><span>When I tried to compile fluidsynth it has found libreadline at /<span class="">usr</span>/<span class="">include</span>/, but excluded this directory when it was added directly through <span class="">include_directories</span>("/<span class="">usr</span>/<span class="">include</span>"). Later I've tried to pass option CMAKE_REQUIRED_INCLUDES to cmake, but it excludes /<span class="">usr</span>/<span class="">include</span> too.
</span><br><br><span>I can see that UnixPaths.cmake module has following lines:
</span><br><br><span>list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES
</span><br><span>  /<span class="">usr</span>/<span class="">include</span>
</span><br><span>  )
</span><br><span>list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
</span><br><span>  /<span class="">usr</span>/<span class="">include</span>
</span><br><span>  )
</span><br><br><span>but it seems that this is used only when using macro like check_include_file() or find_library(), but not for compilation.
</span><br><br><span>How I can add /<span class="">usr</span>/<span class="">include</span> to the list of header directories for compilation?
</span><br><br><span>Thanks in advance!
</span></div>