From df1c49dba152249011670cac26e47b1bab9dd666 Mon Sep 17 00:00:00 2001 From: yangfl Date: Sat, 4 Nov 2017 17:39:54 +0800 Subject: [PATCH] CMakeLists.txt: swap GNUInstallDirs and project --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 47ff6a2..1db8281 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,10 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0) cmake_minimum_required(VERSION 2.8.5) -include(GNUInstallDirs) - project(cJSON C) +include(GNUInstallDirs) + set(PROJECT_VERSION_MAJOR 1) set(PROJECT_VERSION_MINOR 6) set(PROJECT_VERSION_PATCH 0)