From 28d31171ed0f4d8d08bdf7455bcfcce2c9fc6429 Mon Sep 17 00:00:00 2001 From: dukecheung <1401046908@qq.com> Date: Sun, 25 Apr 2021 21:05:08 +0800 Subject: [PATCH] fixed bfd #error config.h --- CMakeLists.txt | 4 ++++ modules/CMakeLists.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95e9c9e12..03ede9948 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,12 @@ cmake_minimum_required(VERSION 3.6) + # Global properties set_property(GLOBAL PROPERTY USE_FOLDERS ON) +add_compile_definitions("PACKAGE=cppserver") +add_compile_definitions("PACKAGE_VERSION=1") + # Project name project(cppserver) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index fedba343e..6e84aadc0 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -3,3 +3,4 @@ include("Catch2.cmake") include("cpp-optparse.cmake") include("CppBenchmark.cmake") include("CppCommon.cmake") +