From 6e506a262337f9f80c5b5fc0a2351eef1c5ac66a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Mon, 21 Aug 2017 22:39:47 +0200 Subject: [PATCH] Define EXIV2_ENABLE_DYNAMIC_RUNTIME only once --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59ac9eec..df69bb8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,15 +36,14 @@ OPTION( EXIV2_ENABLE_BUILD_SAMPLES "Build the unit tests" OPTION( EXIV2_ENABLE_BUILD_PO "Build translations files" OFF ) OPTION( EXIV2_ENABLE_VIDEO "Build video support into library" OFF ) OPTION( EXIV2_ENABLE_WEBREADY "Build webready support into library" OFF ) +OPTION( EXIV2_ENABLE_DYNAMIC_RUNTIME "Use dynamic runtime (used for static libs)" OFF ) IF (WIN32) - OPTION( EXIV2_ENABLE_DYNAMIC_RUNTIME "Use dynamic runtime (used for static libs)" OFF ) OPTION( EXIV2_ENABLE_WIN_UNICODE "Use Unicode paths (wstring) on Windows" OFF ) OPTION( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo" OFF ) OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" OFF ) ELSE() OPTION( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo" ON ) OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" ON ) - SET ( EXIV2_ENABLE_DYNAMIC_RUNTIME OFF ) ENDIF() OPTION( EXIV2_ENABLE_TOOLS "Build exiv2 executable" ON )