You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the default example /CMakeLists.txt (top-most CMake Project), via the following command has some interesting command-line settings, which do not seem to actually utilize a pch system. I am running MSVC 2017 (x64).
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" ../
In particular, here is [example Property Page] -> [C/C++] -> [Command Line] output:
For one, /Yu is not used, which causes the core MSVC system not to use a pre-compiled header (afaik, I am not a MSVC wiz). However, it is set in the following 2 methods:
function (cotire_add_prefix_pch_inclusion_flags _language _compilerID _compilerVersion _prefixFile _pchFile _flagsVar)
Another interesting quirk is that /Fp"example.dir\Debug\example.pch doesn't exist:
It seems like in either the _unity build, or standard target name build, both should point to the pch content in /build/src/Debug/cotire:
If this is already explained in the documentation, I would love to figure out where. I am new to Cotire, so sorry for any obvious mistakes I may have made. Additionally, here is my vswhere.exe output, and CMake version information.
cmake version 3.12.1
CMake suite maintained and supported by Kitware (kitware.com/cmake)
The text was updated successfully, but these errors were encountered:
gblikas
changed the title
MSVC 2017 /Fp and /Yc and /Yu Flags Broken On 391bf6b7609e14f5976bd5247b68d63cbf8d4d12
MSVC 2017 /Fp and /Yc and /Yu Flags Broken On 391bf6b7609e14f5976bd5247b68d63cbf8d4d12
Jan 11, 2019
I understand that it might not be a solution for you if you need/want to use Visual Studio IDE, but I'm using VSCode + Visual C++ 2017 + Cotire + Ninja build and /Yu and /Fp flags are all correctly set.
I decided to abandon Visual Studio IDE because it's intellisense was too slow, and I'm quite happy with the current setup, now.
Running the default example
/CMakeLists.txt
(top-most CMake Project), via the following command has some interesting command-line settings, which do not seem to actually utilize a pch system. I am running MSVC 2017 (x64).In particular, here is
[example Property Page] -> [C/C++] -> [Command Line]
output:For one,
/Yu
is not used, which causes the core MSVC system not to use a pre-compiled header (afaik, I am not a MSVC wiz). However, it is set in the following 2 methods:cotire/CMake/cotire.cmake
Line 1627 in 391bf6b
and
cotire/CMake/cotire.cmake
Line 1786 in 391bf6b
Another interesting quirk is that
/Fp"example.dir\Debug\example.pch
doesn't exist:It seems like in either the
_unity
build, or standard target name build, both should point to the pch content in/build/src/Debug/cotire
:If this is already explained in the documentation, I would love to figure out where. I am new to Cotire, so sorry for any obvious mistakes I may have made. Additionally, here is my
vswhere.exe
output, and CMake version information.The text was updated successfully, but these errors were encountered: