Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2016-07-09 23:33:34 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2016-07-09 23:33:34 +0300
commit25b3589f826b7c8a790f00f1870a69314198713e (patch)
treef3332013baff5700af1feeea80bc243faef3d35f /CMakeLists.txt
parentb1d25e3021caa6085ad14e51f4704ef2966ca587 (diff)
Added support for libstdc++ filesystem. Added precompiled header usage to the unit test suite.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 17 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5549dde3..97e81244 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
# Bring in the Boost lite cmake tooling
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/include/boost/afio/boost-lite/cmake")
include(BoostLiteRequireOutOfSourceBuild)
-include(BoostLiteHppUtils) # for ParseProjectVersionFromHpp and UpdateRevisionHppFromGit
+include(BoostLiteUtils) # for ParseProjectVersionFromHpp and UpdateRevisionHppFromGit
# Parse the version we tell cmake directly from the version header file
ParseProjectVersionFromHpp("${CMAKE_CURRENT_SOURCE_DIR}/include/boost/afio/version.hpp" VERSIONSTRING)
@@ -25,19 +25,25 @@ include(BoostLiteMakeHeaderOnlyLibrary)
include(BoostLiteApplyDefaultDefinitions)
# Set the C++ features this library requires
all_compile_features(PUBLIC
- # cxx_exceptions ## Annoyingly not supported by cmake 3.4
- cxx_alias_templates
- cxx_variadic_templates
- cxx_noexcept
- cxx_constexpr
- cxx_thread_local
- #cxx_init_captures ## Not supported yet by cmake 3.4
- cxx_attributes
- cxx_variable_templates
- )
+ # cxx_exceptions ## Annoyingly not supported by cmake 3.4
+ cxx_alias_templates
+ cxx_variadic_templates
+ cxx_noexcept
+ cxx_constexpr
+ cxx_thread_local
+ #cxx_init_captures ## Not supported yet by cmake 3.4
+ cxx_attributes
+ cxx_variable_templates
+)
+# Set any macros this library requires
+if(WIN32)
+ all_compile_definitions(PRIVATE _WIN32_WINNT=0x600) ## Target WinVista
+endif()
# Anyone using the static or dynamic libraries is not using the header only variant
foreach(lib afio_sl afio_dl)
target_compile_definitions(${lib} INTERFACE BOOST_AFIO_HEADERS_ONLY=0)
endforeach()
+# For all possible configurations of this library, add each test
+include(BoostLiteMakeStandardTests)