From 2812334de9da16ec52bcacaccacffcb4c98594cf Mon Sep 17 00:00:00 2001 From: josch Date: Mon, 17 Nov 2014 11:42:22 +0100 Subject: [PATCH] add FL_CPP11 preprocessor define independent of which fuzzylite is used --- AI/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/AI/CMakeLists.txt b/AI/CMakeLists.txt index 1d6acb433..82856a671 100644 --- a/AI/CMakeLists.txt +++ b/AI/CMakeLists.txt @@ -3,13 +3,14 @@ cmake_minimum_required(VERSION 2.8) find_package(Fuzzylite) +if(NOT MSVC) + add_definitions(-DFL_CPP11) + set(FL_CPP11 ON CACHE BOOL "") +endif() + 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) endif() add_subdirectory(BattleAI)