Skip to content

Commit

Permalink
switch C++14 -> C++17, so it becomes compatible with Pytorch 2.4 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelVesely84 authored Jul 31, 2024
1 parent 0355ed8 commit eeefc87
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,6 +17,7 @@ set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(BUILD_RPATH_USE_ORIGIN TRUE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)


if(NOT APPLE)
set(kaldifeat_rpath_origin "$ORIGIN")
else()
Expand All @@ -33,7 +34,7 @@ if(NOT CMAKE_BUILD_TYPE)
endif()

if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14 CACHE STRING "The C++ version to be used.")
set(CMAKE_CXX_STANDARD 17 CACHE STRING "The C++ version to be used.")
endif()
message(STATUS "C++ Standard version: ${CMAKE_CXX_STANDARD}")
set(CMAKE_CXX_EXTENSIONS OFF)
Expand All @@ -45,7 +46,6 @@ option(BUILD_SHARED_LIBS "Whether to build shared libraries" ON)
option(kaldifeat_BUILD_TESTS "Whether to build tests or not" ON)
option(kaldifeat_BUILD_PYMODULE "Whether to build python module or not" ON)


message(STATUS "BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}")

if(BUILD_SHARED_LIBS AND MSVC)
Expand Down

0 comments on commit eeefc87

Please sign in to comment.