Fix COMPILE_FLAGS (Clang).
@@ -338,9 +338,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
# TINYSPLINE_BINDING_CXX_FLAGS
set(TINYSPLINE_BINDING_CXX_FLAGS "${TINYSPLINE_BINDING_CXX_FLAGS} -w")
- if(TINYSPLINE_CXX11_COMPLIANT)
- set(TINYSPLINE_BINDING_CXX_FLAGS "${TINYSPLINE_BINDING_CXX_FLAGS} -std=c++11")
- endif()
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# TINYSPLINE_CXX_AVAILABLE
set(TINYSPLINE_CXX_AVAILABLE TRUE)
@@ -375,9 +372,6 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# TINYSPLINE_BINDING_CXX_FLAGS
set(TINYSPLINE_BINDING_CXX_FLAGS "${TINYSPLINE_BINDING_CXX_FLAGS} -w")
- if(TINYSPLINE_CXX11_COMPLIANT)
- set(TINYSPLINE_BINDING_CXX_FLAGS "${TINYSPLINE_BINDING_CXX_FLAGS} -std=c++11")
- endif()
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
# TINYSPLINE_CXX_AVAILABLE
set(TINYSPLINE_CXX_AVAILABLE TRUE)
@@ -884,6 +878,9 @@ if(TINYSPLINE_CXX_AVAILABLE AND TARGET_SUPPORTS_SHARED_LIBS)
set_target_properties(${TINYSPLINE_OCTAVE_CMAKE_TARGET} PROPERTIES
FOLDER ${TINYSPLINE_BINDINGS_FOLDER_NAME}
COMPILE_FLAGS "${TINYSPLINE_BINDING_CXX_FLAGS}"
+ CXX_STANDARD 11
+ CXX_STANDARD_REQUIRED ON
+ CXX_EXTENSIONS OFF
OUTPUT_NAME "${TINYSPLINE_PACKAGE_NAME}"
)
endif()
