]> git.ipfire.org Git - thirdparty/git.git/commit
cmake: fix CMakeLists.txt on Linux
authorYuyi Wang <Strawberry_Str@hotmail.com>
Tue, 24 May 2022 06:38:47 +0000 (06:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 May 2022 23:05:00 +0000 (16:05 -0700)
commita561962479cc2c1063babeeaf0e6491fd4b8b2e8
treebf7dd41bea5a60b52913fce1eb706b539175745a
parente54793a95afeea1e10de1e5ad7eab914e7416250
cmake: fix CMakeLists.txt on Linux

CMakeLists.txt didn't follow the grammar of `set`, and it will fail when
setting `USE_VCPKG` off on non-Windows platforms.

When the platform is Linux, the Makefile adds `compat/linux/procinfo.o`
to `COMPAT_OBJS`, but the CMakeLists.txt didn't add
`compat/linux/procinfo.c` to `compat_SOURCES`. It would cause linkage
error.

Signed-off-by: Yuyi Wang <Strawberry_Str@hotmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/buildsystems/CMakeLists.txt