Skip to content

Commit

Permalink
Disabling CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Dec 18, 2021
1 parent 898dcb5 commit 3668833
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ endif()
# Project version number
set(PRJ_VERSION_MAJOR 1)
set(PRJ_VERSION_MINOR 60)
set(PRJ_VERSION_PATCH 1)
set(PRJ_VERSION_PATCH 2)

if (EXISTS "${PROJECT_SOURCE_DIR}/.git" AND IS_DIRECTORY "${PROJECT_SOURCE_DIR}/.git")
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/cmake/githash.sh ${GIT_EXECUTABLE}
Expand Down Expand Up @@ -121,6 +121,7 @@ list(APPEND GO_ENV
GOPATH=${GO_PATH}
GOOS=${CROSS_GOOS}
GOARCH=${CROSS_GOARCH}
CGO_ENABLED=0
)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
Expand Down

0 comments on commit 3668833

Please sign in to comment.