Skip to content

Commit

Permalink
Update to C++20 for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
panickal-xmos committed Sep 20, 2023
1 parent 5f09fb1 commit e8d3f0e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/xmos_ai_tools/xinterpreters/host/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ project(xtflm_python VERSION 1.0.1)
set(X86 ON)

# This variable is ignored on platforms other than Apple
set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk)

set(CMAKE_CXX_FLAGS "-std=c++11" CACHE STRING "C++ Compiler Base Flags" FORCE)

set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk)

#**********************
# Build flags
Expand Down Expand Up @@ -65,6 +62,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(INSTALL_DIR "${PROJECT_SOURCE_DIR}/libs/macos")
else() # must be Windows
# For designated initializers, c++20 is required on Windows
set(CMAKE_CXX_STANDARD 20)
set(INSTALL_DIR "${PROJECT_SOURCE_DIR}/libs/windows")
endif()

Expand Down

0 comments on commit e8d3f0e

Please sign in to comment.