From 5afe02cdd457a76666e39d9e3f198f085fc8131b Mon Sep 17 00:00:00 2001 From: Robert Hauck Date: Wed, 11 Feb 2015 13:32:27 +0100 Subject: [PATCH] wrong defines --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8bdb64e4..2ce5400c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,12 +10,13 @@ if(NANA_ENABLE_PNG) add_definitions(-DNANA_ENABLE_PNG) endif() -option(NANA_LIBPNG "Use the system installed libpng" OFF) +option(NANA_LIBPNG "Use the included libpng" ON) if(NANA_LIBPNG) + add_definitions(-DNANA_LIBPNG) +else() find_package(PNG) if (PNG_FOUND) include_directories( ${PNG_INCLUDE_DIRS}) - add_definitions(-DNANA_LIBPNG) endif() endif()