From e5f3f5d89a8da7265368c1eb167bb0ad2ce684e9 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sun, 3 Aug 2014 16:30:36 +0200 Subject: [PATCH] Unsolved bug, add_definitions() doesn't work in Etesian CMakeLists.txt * Bug: In Etesian CMakeLists.txt cannot get add_definitions() to work to enable/disable Coloquinte. As a workaroud, it's moved into the FindCOLOQUINTE.cmake itself. Cannot make any sense of it. --- etesian/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/etesian/CMakeLists.txt b/etesian/CMakeLists.txt index e7e4d9cb..85c1af97 100644 --- a/etesian/CMakeLists.txt +++ b/etesian/CMakeLists.txt @@ -8,6 +8,7 @@ cmake_minimum_required(VERSION 2.8.9) list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/") + find_package(COLOQUINTE) find_package(Bootstrap REQUIRED) setup_project_paths(CORIOLIS) setup_project_paths(COLOQUINTE) @@ -20,7 +21,6 @@ find_package(LibXml2 REQUIRED) find_package(PythonLibs REQUIRED) find_package(PythonSitePackages REQUIRED) - find_package(COLOQUINTE ) find_package(VLSISAPD REQUIRED) find_package(LEFDEF REQUIRED) find_package(HURRICANE REQUIRED) @@ -30,10 +30,6 @@ add_subdirectory(src) add_subdirectory(cmake_modules) - if(COLOQUINTE_FOUND) - add_definitions(-DHAVE_COLOQUINTE) - endif() - if(BUILD_DOC) find_package(Doxygen) # if(DOXYGEN_FOUND)