diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-07-10 04:48:32 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-07-10 04:48:32 +0300 |
commit | e5078f3ceb2831b02cbffa0febbfa6d4fa9e6217 (patch) | |
tree | 0d3fa063b01b4303838cb85a6735653c78cc45c0 /CMakeLists.txt | |
parent | 6982f9d7caaf6dae08bb763bb73d582047d19452 (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.txt | 11 |
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) |