From a302c5ab2f601c0116fb62c6b21dec4a143550e9 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Tue, 10 Sep 2019 20:21:18 +0100 Subject: Fix PR #26 was not compiling on MSVC with /fpermissive- due to MSVC parser bug --- CMakeLists.txt | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index d7d6f688..e04a3638 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,26 @@ +# LLFIO cmake +# (C) 2016-2019 Niall Douglas +# File Created: June 2016 +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License in the accompanying file +# Licence.txt or at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file Licence.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + cmake_minimum_required(VERSION 3.1 FATAL_ERROR) include(cmake/QuickCppLibBootstrap.cmake) include(QuickCppLibRequireOutOfSourceBuild) @@ -192,7 +215,9 @@ endforeach() if(MSVC) foreach(test_target ${llfio_TEST_TARGETS}) target_compile_options(${test_target} PRIVATE /wd4503) ## decorated name length exceeded - #target_compile_options(${test_target} PRIVATE /permissive-) ## future parsing + if(NOT CLANG) + target_compile_options(${test_target} PRIVATE /permissive-) ## future parsing + endif() endforeach() endif() -- cgit v1.2.3