Add -disableMetrics for linux
MODIFY
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 3.3)
project(vcpkg C CXX)
+OPTION(DEFINE_DISABLE_METRICS "Option for disabling metrics" "0")
+
if(CMAKE_COMPILER_IS_GNUXX OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(GCC 1)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
@@ -31,7 +33,7 @@ endif()
file(GLOB_RECURSE VCPKGLIB_SOURCES src/vcpkg/*.cpp)
add_executable(vcpkg src/vcpkg.cpp ${VCPKGLIB_SOURCES})
-target_compile_definitions(vcpkg PRIVATE -DDISABLE_METRICS=0)
+target_compile_definitions(vcpkg PRIVATE -DDISABLE_METRICS=${DEFINE_DISABLE_METRICS})
target_include_directories(vcpkg PRIVATE include)
if(GCC)

Add -disableMetrics for linux