Skip to content

Commit

Permalink
chore: bump required C++ standard to C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Nov 8, 2023
1 parent 0adcc34 commit 4f61f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ cmake_minimum_required(VERSION 3.11) # for FetchContent
project(torchopt LANGUAGES CXX)

include(FetchContent)
set(PYBIND11_VERSION v2.10.3)
set(PYBIND11_VERSION v2.11.1)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Threads REQUIRED) # -pthread
Expand Down

0 comments on commit 4f61f0e

Please sign in to comment.