mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 19:02:43 +08:00
cmake:fix x86_64 cmake configured warning
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -86,21 +86,6 @@ function(nuttx_add_romfs)
|
||||
list(APPEND RCRAWS ${board_rcraws})
|
||||
endif()
|
||||
|
||||
get_directory_property(TOOLCHAIN_DIR_FLAGS DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
COMPILE_OPTIONS)
|
||||
|
||||
set(ROMFS_CMAKE_C_FLAGS "")
|
||||
foreach(FLAG ${TOOLCHAIN_DIR_FLAGS})
|
||||
if(NOT FLAG MATCHES "^\\$<.*>$")
|
||||
list(APPEND ROMFS_CMAKE_C_FLAGS ${FLAG})
|
||||
else()
|
||||
string(REGEX MATCH "\\$<\\$<COMPILE_LANGUAGE:C>:(.*)>" matched ${FLAG})
|
||||
if(matched)
|
||||
list(APPEND ROMFS_CMAKE_C_FLAGS ${CMAKE_MATCH_1})
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
foreach(rcsrc ${RCSRCS})
|
||||
if(IS_ABSOLUTE ${rcsrc})
|
||||
string(REGEX REPLACE "^(.*)/etc(/.*)?$" "\\1" SOURCE_ETC_PREFIX
|
||||
|
||||
Reference in New Issue
Block a user