From e5078f3ceb2831b02cbffa0febbfa6d4fa9e6217 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Sun, 10 Jul 2016 02:48:32 +0100 Subject: 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. --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3