From 1bf579e1d179b586a7a330001066c0809038cd46 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 7 Apr 2021 20:00:27 +0200 Subject: [PATCH] Apply cmake-format --- libsyncthing/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsyncthing/CMakeLists.txt b/libsyncthing/CMakeLists.txt index 2388ccd..a34ea03 100644 --- a/libsyncthing/CMakeLists.txt +++ b/libsyncthing/CMakeLists.txt @@ -181,7 +181,8 @@ add_custom_command( # add target to compile Syncthing as standalone executable (helpful for testing) set(SYNCTHING_EXECUTABLE_PATH "${CMAKE_CURRENT_BINARY_DIR}/syncthing") -add_custom_target(syncthing_executable +add_custom_target( + syncthing_executable COMMAND "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}" "AR=${CMAKE_C_COMPILER_AR}" "GOOS=${GO_TARGET_OS}" "CGO_CFLAGS=${CGO_CFLAGS}" "CGO_CXXFLAGS=${CGO_CXXFLAGS}" "CGO_LDFLAGS=${CGO_LDFLAGS}" "GOARCH=${GO_TARGET_ARCH}" @@ -189,8 +190,7 @@ add_custom_target(syncthing_executable -buildmode exe -o "${SYNCTHING_EXECUTABLE_PATH}" -ldflags "${GO_LINKER_FLAGS}" ./cmd/syncthing DEPENDS ${SRC_FILES_SYNCTHING} WORKING_DIRECTORY "${SYNCTHING_PATH}" - COMMENT "Building Syncthing itself (as executable, ${SYNCTHING_EXECUTABLE_PATH})" -) + COMMENT "Building Syncthing itself (as executable, ${SYNCTHING_EXECUTABLE_PATH})") # find c++utilities to use CMake modules and headers from it privately find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED)