Tuesday, July 26, 2022

[SOLVED] Output Include Paths and CMake

Issue

I would like to force CMake to provide verbosity in terms of include paths (-I...). Consider current output:

/D/Software/MinGW/bin/g++.exe -DQT_DEBUG -fmessage-length=0 -mfpmath=sse -msse2 -fopenmp -g3 -gdwarf-2 @CMakeFiles/go.dir/includes_CXX.rsp   -o CMakeFiles/go.dir/main.cpp.obj -c /D/Users/Haroogan/Development/Workspace/New2/main.cpp

Everywhere, instead of showing a list of include paths, it rather shows @CMakeFiles/go.dir/includes_CXX.rsp. Indeed, this file contains include paths.

How can I force CMake or Make or whatever to output include paths?


Solution

set(CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES 0)


Answered By - Nazar Panchoshnyk
Answer Checked By - Willingham (WPSolving Volunteer)