Set LANGUAGES explicitly in CMakeLists.txt project()
When Mbed TLS is built as a TF-M subproject with a recent enough version of cmake (i.e. 3.22), GNUInstallDirs complains about LANGUAGES not being set in project when the short signature is used. So make sure to use the normal signature, i.e. set the LANGUAGES option explicitly Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
This commit is contained in:
parent
e06d863267
commit
1a0feb394c
1 changed files with 2 additions and 2 deletions
|
@ -34,9 +34,9 @@ cmake_policy(SET CMP0011 NEW)
|
|||
cmake_policy(SET CMP0012 NEW)
|
||||
|
||||
if(TEST_CPP)
|
||||
project("mbed TLS" C CXX)
|
||||
project("mbed TLS" LANGUAGES C CXX)
|
||||
else()
|
||||
project("mbed TLS" C)
|
||||
project("mbed TLS" LANGUAGES C)
|
||||
endif()
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
|
Loading…
Reference in a new issue