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:
parent
4df926b02d
commit
39cb21dfc0
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue