diff --git a/CMakeLists.txt b/CMakeLists.txt index 0713a46..63bbcca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) + add_compile_options(-stdlib=libc++) add_compile_options(-Wall -Wextra -pedantic-errors) elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") add_compile_options(/W4)