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-10 04:48:32 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2016-07-10 04:48:32 +0300
commite5078f3ceb2831b02cbffa0febbfa6d4fa9e6217 (patch)
tree0d3fa063b01b4303838cb85a6735653c78cc45c0 /CMakeLists.txt
parent6982f9d7caaf6dae08bb763bb73d582047d19452 (diff)
Tried out VS2015's experimental C++ Modules support with AFIO v2. Sadly, it's a bust, no matter what I do it's ICEs all round. Disabled for now.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 97e81244..8ec06701 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,11 +39,20 @@ all_compile_features(PUBLIC
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)
+ target_compile_definitions(${lib} PRIVATE BOOST_AFIO_SOURCE=1)
endforeach()
+# Test C++ Modules (ICEs in VS2015 Update 3)
+if(MSVC AND 0)
+ target_compile_definitions(afio_dl PUBLIC -D__cpp_modules=1)
+ target_compile_options(afio_dl PUBLIC /experimental:module)
+ target_sources(afio_dl PRIVATE include/boost/afio/afio.ixx)
+ set_source_files_properties(include/boost/afio/afio.ixx PROPERTIES
+ LANGUAGE CXX
+ )
+endif()
# For all possible configurations of this library, add each test
include(BoostLiteMakeStandardTests)