Browse Source

fix go static command line

Grant Limberg 5 years ago
parent
commit
001fb54b15
1 changed files with 4 additions and 1 deletions
  1. 4 1
      CMakeLists.txt

+ 4 - 1
CMakeLists.txt

@@ -120,7 +120,10 @@ else(WIN32)
 				-static
 			)
 			set(CMAKE_EXE_LINKER_FLAGS "-static ${CMAKE_EXE_LINKER_FLAGS}")
-			set(GOFLAGS "-a -tags netgo -ldflags '-w -extldflags \"-static\"")
+			set(GOFLAGS 
+				-a 
+				-tags netgo 
+				-ldflags '-w -extldflags \"-static\"')
 		endif(BUILD_STATIC)
 	endif(APPLE)
 endif(WIN32)