]> git.ipfire.org Git - thirdparty/ccache.git/commit
build: Fix MSVC /Zc:preprocessor warning (#1461)
authorSilver Zachara <silver.zachara@gmail.com>
Tue, 28 May 2024 17:03:29 +0000 (19:03 +0200)
committerGitHub <noreply@github.com>
Tue, 28 May 2024 17:03:29 +0000 (19:03 +0200)
commit273bbd63b8a08837b2ec2444b5e1d04aeefe2f6f
tree26f5c0be9997391af44a14703e1ee2b70650313e
parente126b5caba61513160939451f68fb1476e2b9194
build: Fix MSVC /Zc:preprocessor warning (#1461)

Don't add the /Zc:preprocessor- compiler flag when it's not needed, to
avoid the following warning:
D9025 : overriding '/Zc:preprocessor' with '/Zc:preprocessor-

The latest Windows SDK v10.0.22621 compiles fine with conforming
preprocessor enabled, the bug was in older SDK-s like <=10.0.20348.0.

Add the /Zc:preprocessor for msvc >=v19.25, it didn't exist before this
version (it existed as /experimental:preprocessor before).
cmake/StandardSettings.cmake
unittest/CMakeLists.txt