mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Add libc++ flag to top-level CMakeLists
This commit is contained in:
parent
cf8898eda6
commit
7a68756b2b
1 changed files with 6 additions and 0 deletions
|
@ -2,4 +2,10 @@ cmake_minimum_required(VERSION 3.13)
|
|||
project(calculator CXX)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
if(CMAKE_CXX_COMPILER MATCHES ".*clang")
|
||||
# Clang disagress with libstdc++ about constexpr-ness of wstring_view
|
||||
# See https://github.com/Microsoft/calculator/pull/321
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue