소스 검색

build system: quote LD script search paths in target_linker_script

Ivan Grokhotkov 5 년 전
부모
커밋
83a7ecc7c3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tools/cmake/utilities.cmake

+ 2 - 2
tools/cmake/utilities.cmake

@@ -158,9 +158,9 @@ function(target_linker_script target deptype scriptfiles)
             get_target_property(link_libraries "${target}" LINK_LIBRARIES)
             get_target_property(link_libraries "${target}" LINK_LIBRARIES)
         endif()
         endif()
 
 
-        list(FIND "${link_libraries}" "-L ${search_dir}" found_search_dir)
+        list(FIND "${link_libraries}" "-L \"${search_dir}\"" found_search_dir)
         if(found_search_dir EQUAL "-1")  # not already added as a search path
         if(found_search_dir EQUAL "-1")  # not already added as a search path
-            target_link_libraries("${target}" "${deptype}" "-L ${search_dir}")
+            target_link_libraries("${target}" "${deptype}" "-L \"${search_dir}\"")
         endif()
         endif()
 
 
         target_link_libraries("${target}" "${deptype}" "-T ${scriptname}")
         target_link_libraries("${target}" "${deptype}" "-T ${scriptname}")