From 7dc183126ab53d0788d48066054a8282d63c0d17 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 28 Dec 2010 13:50:34 +0100 Subject: Set variables in the good order --- DefineOptions.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'DefineOptions.cmake') diff --git a/DefineOptions.cmake b/DefineOptions.cmake index d82588cb..323d1afe 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -11,9 +11,11 @@ option(WITH_INTERNAL_DOC "Compile doxygen internal documentation" OFF) option(WITH_TESTING "Build with unit tests" OFF) option(WITH_CLIENT_TESTING "Build with client tests; requires a running sshd" OFF) option(WITH_BENCHMARKS "Build benchmarks tools" OFF) + +if(WITH_BENCHMARKS) + set(WITH_TESTING ON) +endif(WITH_BENCHMARKS) + if (WITH_TESTING) set(WITH_STATIC_LIB ON) endif (WITH_TESTING) -if(WITH_BENCHMARKS) - set(WITH_TESTING ON) -endif(WITH_BENCHMARKS) \ No newline at end of file -- cgit v1.2.3