From d32b99009653f73d7fadfd81d3d82574b3429984 Mon Sep 17 00:00:00 2001 From: Mehdi Benallegue Date: Wed, 24 Jun 2020 20:41:41 +0900 Subject: [PATCH] Set the postfix only if it is not already set --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d048abd..0cdb0c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,11 @@ set(CXX_DISABLE_WERROR True) # disable -Werror on Unix for now. set(PROJECT_NAME eigen-quadprog) set(PROJECT_DESCRIPTION "QuadProg QP solver through Eigen3 library.") set(PROJECT_URL "https://github.com/jrl-umi3218/eigen-quadprog") -set(PROJECT_DEBUG_POSTFIX "_d") + +if (NOT DEFINED PROJECT_DEBUG_POSTFIX) + set(PROJECT_DEBUG_POSTFIX "_d") +endif() + set(PROJECT_VERSION 1.0.1) set(PROJECT_USE_CMAKE_EXPORT TRUE)