From 93ffe4c8904ebe03f02051f0897cb8e6f065f1b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Thu, 11 May 2017 11:42:26 +0200 Subject: [PATCH] Use more appropriate CMake facilities to define build options --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b1871c..6cbbf52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,8 @@ include(TestBigEndian) project(libHPCS) +option(BUILD_TEST_TOOL "Build a simple test tool to check the library's operation" OFF) + set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) add_definitions("-std=c89 -Wall -Wextra -fvisibility=hidden") @@ -41,7 +43,7 @@ install(TARGETS HPCS PUBLIC_HEADER DESTINATION include) -if (${BuildTestTool}) +if (BUILD_TEST_TOOL) set(libHPCS_test_SRCS test_tool.c) -- 2.43.5