build: Fix crossbuilding definitions 66/41166/5
authorRenato Botelho do Couto <[email protected]>
Thu, 20 Jun 2024 16:01:40 +0000 (11:01 -0500)
committerMatthew Smith <[email protected]>
Fri, 12 Jul 2024 12:40:15 +0000 (12:40 +0000)
commite69ec9c101883a7bc90fdac6d28ddf8e9429b466
tree1c332ca7d331aacaec8c189ae5be672ef1776721
parentd18726eaac8f06aaaebca3e8c42590870de2af21
build: Fix crossbuilding definitions

CMAKE_C_COMPILER_TARGET doesn't need to be set when it's not cross
compiling, and based on wrong identation of that line I suspect it was
intended to be inside CMAKE_CROSSCOMPILING conditional.

With this line moved inside, it ends up being the only place where
COMPILER_SUFFIX is used, so, move its declaration there as well.

It will not bring any change to currently supported systems but will
make it easier to build VPP on systems running musl libc.

Type: fix

Change-Id: Ia8e16d9e8ad9c987ddf246dd0e3f8636ccad1362
Signed-off-by: Renato Botelho do Couto <[email protected]>
src/CMakeLists.txt