diff --git a/CMakeLists.txt b/CMakeLists.txt index 183d9f378..f21ac48cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,6 +114,6 @@ set( add_custom_target(zerotier ALL WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMAND rm -f ./build/zerotier && go build -trimpath -ldflags -s -w -buildmode=pie -o ./build/zerotier cmd/zerotier/zerotier.go + ADDITIONAL_CLEAN_FILES ./build/zerotier ) add_dependencies(zerotier zt_osdep zt_core zt_controller zt_service_io_core) -ADDITIONAL_CLEAN_FILES(./build/zerotier)