]> The Tcpdump Group git mirrors - tcpdump/commit
Tell CMake not to check for a C++ compiler.
authorGuy Harris <[email protected]>
Sun, 8 Aug 2021 18:54:17 +0000 (11:54 -0700)
committerDenis Ovsienko <[email protected]>
Wed, 29 Sep 2021 14:11:01 +0000 (15:11 +0100)
commitc406719bab245e0ff6d2b2dc379edc519c94db10
treed309f2f009ce95d617c83f7f7374bd9ba2c3ee65
parent15d7577dcac1fbd8b991f78712c61965aa5f48c0
Tell CMake not to check for a C++ compiler.

We only need a C compiler, and if either

1) the C and C++ compilers don't match (e.g., a defaults-to-64-bit GCC
and a defaults-to-32-bit Oracle Studio C++)

or

2) you set CFLAGS in the environment to force a 64-bit build but don't
also set CXXFLAGS

CMake will get confused and think it's doing a 32-bit build even though
we'll be doing a 64-bit build, and all sorts of weirdness will occur.

Just say "C" in the project() command.

(cherry picked from commit 3834579486f1bb4a002e45ceb6c015cd28b84611)
CMakeLists.txt