From b939d1a0b6b375ea5bae54d83a1cb89eb888c75a Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 21 3月 2020 20:57:47 +0800
Subject: [PATCH] update docs

---
 test/CMakeLists.txt |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ca37f3d..924c9f0 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,23 +1,13 @@
 #if we're here boost has been found
 add_definitions(-DBOOST_ALL_NO_LIB) #Disable Boost Microsoft magic, all dependencies are handled by cmake
-add_definitions(-DBOOST_LIB_DIAGNOSTIC) #Check it is really disabled
-include_directories(${Boost_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
-link_directories ( ${Boost_LIBRARY_DIR} )
 
 configure_file (
 	"${CMAKE_CURRENT_SOURCE_DIR}/../src/templates/licensecc_properties_test.h.in" 
 	"${CMAKE_BINARY_DIR}/licensecc_properties_test.h.tmp"
 )
-IF(${CMAKE_VERSION} VERSION_GREATER  3.0)
-	file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/include/$<CONFIG>/licensecc_properties_test.h" 
+file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/include/$<CONFIG>/licensecc_properties_test.h" 
 		INPUT "${CMAKE_BINARY_DIR}/licensecc_properties_test.h.tmp")
-	include_directories ( ${CMAKE_BINARY_DIR}/include/$<CONFIG> )
-ELSE(${CMAKE_VERSION} VERSION_GREATER  3.0)
-#patch for Centos 7 cmake 2.8.11 :(
-	file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/include/$<CONFIGURATION>/licensecc_properties_test.h" 
-		INPUT "${CMAKE_BINARY_DIR}/licensecc_properties_test.h.tmp")
-	include_directories ( ${CMAKE_BINARY_DIR}/include/$<CONFIGURATION> )
-endif(${CMAKE_VERSION} VERSION_GREATER  3.0)
+include_directories ( ${CMAKE_BINARY_DIR}/include/$<CONFIG> )
 
 add_subdirectory(library)
 add_subdirectory(functional)
\ No newline at end of file

--
Gitblit v1.9.1