cmake: Fix invalid calls of set_compiler_property

set_compiler_property does not accept a TARGET argument. Only set_property
does but they are easy to confuse. This patch fixes the wrong instances of
set_compiler_property that should have been set_property.

Signed-off-by: Nicolas Lebedenco <nicolas@lebedenco.net>
This commit is contained in:
Nicolas Lebedenco 2024-04-02 08:52:20 -04:00 committed by Fabio Baltieri
commit 39cb21dfc0
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ set_compiler_property(PROPERTY nostdinc)
set_compiler_property(PROPERTY nostdinc_include)
# Compiler flags for disabling C++ standard include.
set_compiler_property(TARGET compiler-cpp PROPERTY nostdincxx)
set_property(TARGET compiler-cpp PROPERTY nostdincxx)
# Required C++ flags when compiling C++ code
set_property(TARGET compiler-cpp PROPERTY required)

View file

@ -121,7 +121,7 @@ endif()
set_compiler_property(PROPERTY no_printf_return_value -fno-printf-return-value)
set_compiler_property(TARGET compiler-cpp PROPERTY nostdincxx "-nostdinc++")
set_property(TARGET compiler-cpp PROPERTY nostdincxx "-nostdinc++")
# Required C++ flags when using gcc
set_property(TARGET compiler-cpp PROPERTY required "-fcheck-new")