From afb016c13874c94a67e0bbb083a044d5db56a0f6 Mon Sep 17 00:00:00 2001 From: Michael Podvitskiy Date: Fri, 6 Sep 2024 22:17:34 +0200 Subject: [PATCH] Update CMakeLists.txt, spaces fix --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d5c3c57ba..244019313 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,11 +142,11 @@ set(LLAMA_BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Location o set(GGML_TRANSIENT_DEFINES) get_target_property(GGML_DIRECTORY ggml SOURCE_DIR) get_directory_property(GGML_DIR_DEFINES DIRECTORY ${GGML_DIRECTORY} COMPILE_DEFINITIONS) -if(GGML_DIR_DEFINES) +if (GGML_DIR_DEFINES) list(APPEND GGML_TRANSIENT_DEFINES ${GGML_DIR_DEFINES}) endif() get_target_property(GGML_TARGET_DEFINES ggml COMPILE_DEFINITIONS) -if(GGML_TARGET_DEFINES) +if (GGML_TARGET_DEFINES) list(APPEND GGML_TRANSIENT_DEFINES ${GGML_TARGET_DEFINES}) endif() get_target_property(GGML_LINK_LIBRARIES ggml LINK_LIBRARIES)