Fix builds which disabled C++11.
Fixed template used in R typemaps.
Disable Octave if C++11 is disabled
@@ -744,6 +744,13 @@ if(TINYSPLINE_CXX_AVAILABLE AND TARGET_SUPPORTS_SHARED_LIBS)
unset(OCTAVE_VERSION_STRING)
unset(OCTAVE_INCLUDE_DIRS)
unset(OCTAVE_LIBRARIES)
+ elseif(TINYSPLINE_DISABLE_CXX11_FEATURES)
+ message(STATUS "Octave requires C++11")
+ # Clear Octave related variables used in summary.
+ set(OCTAVE_FOUND FALSE)
+ unset(OCTAVE_VERSION_STRING)
+ unset(OCTAVE_INCLUDE_DIRS)
+ unset(OCTAVE_LIBRARIES)
else()
include_directories(${OCTAVE_INCLUDE_DIRS})
set_source_files_properties(tinysplineoctave.i PROPERTIES CPLUSPLUS ON)
