![]() ![]() ![]() For each external library used try to compile a simple hello world to detect if that library is correctly installed (make a simple project using simple functions to see if that compiles, links and runs).You actually should add headers to executable (not needed, but if you generate IDE project files you will see headers there to) Print directory paths to be sure they are correct and inspect to see if they have whitespaces Otherwise you can simply add a path to Make in environment so you are sure cmake see it. Make sure you have correct Make command (try to run make in the directory in which you call cmake).Make sure directory paths have no whitespaces, it may not affect CMake directly but it could cause problems to other tools (GCC, mingw-make/make).CMake runs without error, but make seems to ignore the last include_directories line. SET(CMAKE_CXX_FLAGS "-fPIC -g -D DEBUG -Wall -Wfatal-errors -fstrict-aliasing")Īnd after that i've got some add_subdirectories. ![]() Has anyone encountered a similar or likewise problem an can help me? My include_directories has all specified folders listed as I want, but the makefile neither does include an "INC" tag nor does cmake-gui display the include_directories property. I get the error message, that some headers are not found, so I checked my include_directories according to this questions answer: Listing include_directories in CMake I managed to get cmake to compile it, but make won't run through. I've got another problem with my project. ![]()
0 Comments
Leave a Reply. |