pleasesetr.blogg.se

Cmake include remote header
Cmake include remote header








to remove /usr/include from the CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES list, but that didn't change the compiler commands that cmake made. See also CMAKESYSTEMINCLUDEPATH and CMAKEPREFIXPATH. bfd.h header is included on target include/bfd.h path but still FindLibBfd.cmake is failing to find it. There is also an environment variable CMAKEINCLUDEPATH, which is used as an additional list of search directories. Configuring bpftrace-0.17.1 ( GitHub - iovisor/bpftrace: High-level tracing language for Linux eBPF) during build phase failing in finding libbfd header file (bfd.h).

cmake include remote header

However, on Unix systems cmake, in UnixPaths.cmake, maintains a list called CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES, which contains /usr/include and apparently keeps cmake from emitting -I arguments for the compiler for the directory /usr/include, meaning that the compiler searches the CUDA path first, and uses the freeglut.h header found there. By default it is empty, it is intended to be set by the project.

cmake include remote header

When I use find_package(GLUT) I get $ in include_directories(). Since, you are using makefile, you can include this option in CFLAGS macro in your makefile.

cmake include remote header

If you have header files in include/ directory, then this command should work for you. I have a cmake project that uses a header installed in /usr/include, let's call it freeglut.h. You can either add a -I option to the command line to tell the compiler to look there for header files.










Cmake include remote header