From 68c0a1e0fae6ac3dcc32fed455a477bb9a68d792 Mon Sep 17 00:00:00 2001 From: VergLsm Date: Sun, 20 Sep 2020 21:27:52 +0800 Subject: [PATCH] fix(win): "config.h: No such file or directory" --- CMakeLists.txt | 2 +- include/n2n.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e4ab89..3156a8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ include(CheckFunctionExists) SET(CMAKE_VERBOSE_MAKEFILE ON) # N2n release information -set(N2N_VERSION "2.7.0") +set(N2N_VERSION "2.8.0") set(N2N_OSNAME ${CMAKE_SYSTEM}) execute_process( COMMAND git --version diff --git a/include/n2n.h b/include/n2n.h index ccabd0a..78ab5d5 100644 --- a/include/n2n.h +++ b/include/n2n.h @@ -38,7 +38,7 @@ #ifdef WIN32 #include "win32/n2n_win32.h" -#ifdef _MSC_VER +#ifndef CMAKE_BUILD #include "config.h" /* Visual C++ */ #else #include "win32/winconfig.h"