From 43565e5566b15dd88c642c8db2a5893e3d6f6d26 Mon Sep 17 00:00:00 2001 From: Bertrand Kerautret Date: Mon, 31 Oct 2022 09:18:58 +0100 Subject: [PATCH] Add def to avoid double STB implementation Mainly to avoid double included implementation one from DGTal and the other one of pollyscope. Works with PR [#1666](https://github.com/DGtal-team/DGtal/pull/1666) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9a37e0..f70c34f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,9 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) -include(dgtal) include(polyscope) +add_definitions(-DNO_ADD_STBIMAGE_IMPLEMENT) +include(dgtal) include_directories(${DGTAL_INCLUDE_DIRS}) include_directories(${PROJECT_SOURCE_DIR})