Apply cmake-format
This commit is contained in:
parent
46099abc0c
commit
1bf579e1d1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue