From 91e04015482106d98279f561d8ff220ad916c90e Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sun, 5 Jan 2020 00:14:25 +0100 Subject: [PATCH] Add a necessary switch for ghc filesystem under windows --- cmake/SfizzConfig.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/SfizzConfig.cmake b/cmake/SfizzConfig.cmake index 80e5f710..18a333ef 100644 --- a/cmake/SfizzConfig.cmake +++ b/cmake/SfizzConfig.cmake @@ -22,7 +22,8 @@ if (WIN32) find_package(LibSndFile REQUIRED) find_path(SNDFILE_INCLUDE_DIR sndfile.hh) find_path(SAMPLERATE_INCLUDE_DIR samplerate.h) - add_compile_options(/std:c++17) + set(CMAKE_CXX_STANDARD 17) + add_compile_options(/Zc:__cplusplus) endif() function(SFIZZ_LINK_LIBSNDFILE TARGET)