1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

define FL_CPP11 outside Fuzzylite source

This commit is contained in:
Mikhail Paulyshka 2014-11-03 01:00:22 +03:00
parent 7887a750cf
commit d0da88a515
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ if (NOT FL_FOUND)
set(FL_BUILD_BINARY OFF CACHE BOOL "")
set(FL_BUILD_SHARED OFF CACHE BOOL "")
if(NOT MSVC)
add_definitions(-DFL_CPP11)
set(FL_CPP11 ON CACHE BOOL "")
endif()
add_subdirectory(FuzzyLite/fuzzylite)

View File

@ -1,7 +1,7 @@
project(VCAI)
cmake_minimum_required(VERSION 2.6)
if (FUZZYLITE_FOUND)
if (FL_FOUND)
include_directories(${Boost_INCLUDE_DIRS} ${CMAKE_HOME_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_HOME_DIRECTORY}/lib ${FL_INCLUDE_DIRS})
else()
include_directories(${Boost_INCLUDE_DIRS} ${CMAKE_HOME_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_HOME_DIRECTORY}/lib ${CMAKE_HOME_DIRECTORY}/AI/FuzzyLite/fuzzylite)