[CMake] Port from Debian to Windows: Include files not found

Parag Chandra parag at ionicsecurity.com
Fri Sep 18 13:26:44 EDT 2015


As a diagnostic measure, can you try running in verbose mode, ala:

make VERBOSE=1

That will dump out the exact command lines that are being used, so you can see the search paths.


Parag Chandra
Senior Software Engineer, Mobile Team
Mobile: +1.919.824.1410

[https://www.ionicsecurity.com/IonicSigHz.png]<https://ionic.com>

Ionic Security Inc.
1170 Peachtree St. NE STE 400, Atlanta, GA 30309











From: CMake on behalf of Randy Turner
Date: Friday, September 18, 2015 at 1:22 PM
To: "cmake at cmake.org<mailto:cmake at cmake.org>"
Subject: [CMake] Port from Debian to Windows: Include files not found

I am having trouble building a Code Composer Studio project with CMake. Executing from the same directory in Linux compiles successfully, but in Linux it fails to find any included files that aren't in the same directory as the .c file that it's building. I can provide a relative path to help it move on, but it will just fail to find the files referenced by that one.

The very first #include of the project is <stdbool.h> which is located in the compiler's install files. As shown in my StackOVerflow question about this issue (http://stackoverflow.com/questions/32591626/cmake-header-files-cannot-be-opened) I can confirm that the files are in the directory that is included in the CMakeLists.txt file and can be found while CMake is executing, but fail to be located by make. I am using MinGW's make, and using the commands make and mingw32-make both ellicit the same result, "fatal error: could not open source file "stdbool.h" (no directories in search list)."

Is there something that I'm missing here? Is something else necessary beyond using INCLUDE_DIRECTORIES for all of the directories in the project?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150918/3029e31e/attachment-0001.html>


More information about the CMake mailing list