diff --git a/CMakeLists.txt b/CMakeLists.txt index d1e0789..c4e936f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() @@ -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) @@ -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)