Ver Fonte

[fuzzylite] force C++14 standard

doesn't build under C++17 due to using removed symbols
Andrey Filipenkov há 9 meses atrás
pai
commit
db5d77362a
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      AI/CMakeLists.txt

+ 1 - 0
AI/CMakeLists.txt

@@ -35,6 +35,7 @@ if(NOT fuzzylite_FOUND)
 		add_compile_options(-Wno-error=deprecated-declarations)
 	endif()
 	add_subdirectory(FuzzyLite/fuzzylite EXCLUDE_FROM_ALL)
+	set_property(TARGET fl-static PROPERTY CXX_STANDARD 14) # doesn't compile under 17 due to using removed symbol(s)
 	add_library(fuzzylite::fuzzylite ALIAS fl-static)
 	target_include_directories(fl-static PUBLIC ${CMAKE_HOME_DIRECTORY}/AI/FuzzyLite/fuzzylite)
 endif()