From 6703980dc838e407f790d3589f16fde52c65b46c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 21 May 2025 14:00:49 -0400 Subject: [PATCH] spelling: libraries (#12958) Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CMakeLists.txt | 2 +- cmake/FindLINUXBUILD.cmake | 6 +++--- src/linux/init/CMakeLists.txt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3be48f4..401576d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -364,7 +364,7 @@ set(LINUX_LDFLAGS -target ${LLVM_TARGET} -l:libc.a -static) -set(COMMON_LINUX_LINK_LIBRAIRIES configfile) +set(COMMON_LINUX_LINK_LIBRARIES configfile) if(DEFINED ENV{WSL_DEV_BINARY_PATH}) set(WSL_DEV_BINARY_PATH $ENV{WSL_DEV_BINARY_PATH}) diff --git a/cmake/FindLINUXBUILD.cmake b/cmake/FindLINUXBUILD.cmake index f0663de..376e1b0 100644 --- a/cmake/FindLINUXBUILD.cmake +++ b/cmake/FindLINUXBUILD.cmake @@ -59,17 +59,17 @@ function(add_linux_library_no_sources target sources headers) endfunction() -function(add_linux_executable target sources headers librairies) +function(add_linux_executable target sources headers libraries) set(output "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target}") set(output_unstripped "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target}.unstripped") build_linux_objects("${sources}" "${headers}") set(libs -lunwind -lc++abi -lc++) - foreach(e ${librairies}) + foreach(e ${libraries}) set(libs ${libs} -l${e}) - # Note: This makes the assumption that all librairies are static (.a and not .so). + # Note: This makes the assumption that all libraries are static (.a and not .so). # Executables need to depend on both the target and the underlying library file, so that # the libraries target get analyzed for changes, and the executable gets linked again if the .a files changed. list(APPEND lib_targets "lib${e}") diff --git a/src/linux/init/CMakeLists.txt b/src/linux/init/CMakeLists.txt index 3f6ba14..5a3ee39 100644 --- a/src/linux/init/CMakeLists.txt +++ b/src/linux/init/CMakeLists.txt @@ -46,8 +46,8 @@ set(HEADERS wslpath.h) set(LINUX_CXXFLAGS ${LINUX_CXXFLAGS} -I "${CMAKE_CURRENT_LIST_DIR}/../netlinkutil") -set(INIT_LIBRAIRIES ${COMMON_LINUX_LINK_LIBRARIES} netlinkutil plan9 mountutil configfile) -add_linux_executable(init "${SOURCES}" "${HEADERS}" "${INIT_LIBRAIRIES}") +set(INIT_LIBRARIES ${COMMON_LINUX_LINK_LIBRARIES} netlinkutil plan9 mountutil configfile) +add_linux_executable(init "${SOURCES}" "${HEADERS}" "${INIT_LIBRARIES}") add_dependencies(init localization) set(INITRAMFS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/initrd.img)