Browse Source

Revert "fix compilation of zt_service_tests on Windows"

This reverts commit 8f1e6a2fdeb4f2dd0b81d876bdc70695c092d906.
Grant Limberg 5 years ago
parent
commit
1ad0fbdb76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -265,7 +265,7 @@ if(NOT PACKAGE_STATIC)
 		zt_service_tests ALL
 		BYPRODUCTS ${CMAKE_BINARY_DIR}/zt_service_tests
 		SOURCES ${go_src}
-		COMMAND ${CMAKE_COMMAND} -E env ${GOARCH} ${GOARM} CGO_ENABLED=1 CGO_CFLAGS=\"-O3\" CGO_LDFLAGS=\"$<TARGET_FILE:zt_core> $<TARGET_FILE:zt_controller> $<TARGET_FILE:zt_service_io_core> $<TARGET_FILE:zt_osdep> ${GO_EXTRA_LIBRARIES}\" ${GO} build -mod=vendor ${GOFLAGS} -o ${CMAKE_BINARY_DIR}/zt_service_tests ${CMAKE_SOURCE_DIR}/cmd/zt_service_tests/zt_service_tests.go
+		COMMAND ${CMAKE_COMMAND} -E env ${GOARCH} ${GOARM} CGO_ENABLED=1 CGO_CFLAGS=\"-O3\" CGO_LDFLAGS=\"$<TARGET_FILE:zt_core> $<TARGET_FILE:zt_controller> $<TARGET_FILE:zt_service_io_core> $<TARGET_FILE:zt_osdep> ${GO_EXTRA_LIBRARIES}\" ${GO} build -mod=vendor ${GOFLAGS} -o ${CMAKE_BINARY_DIR}/zt_service_tests ${CMAKE_SOURCE_DIR}/cmd/zt_service_tests/*.go
 		COMMENT "Compiling zt_service_tests (Go/cgo self-tests)..."
 	)
 	add_dependencies(zt_service_tests zt_osdep zt_core zt_controller zt_service_io_core)