From ffc33043a488ecf038d8414fc8af1e99389619f8 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 14 Aug 2018 14:36:55 +0300 Subject: CmakeLists nits --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 088ce3b..1d1b628 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -## actionparser.c - Action parser for ck -------------------------------*- C -*- +## CMakeLists.txt - Build recipe -----------------------------------*- CMake -*- ## ## This file is part of ck, the config keeper ## @@ -11,16 +11,16 @@ cmake_minimum_required (VERSION 3.5.6) project(ck C) - set(CMAKE_C_COMPILER clang) -# gcc flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3") - option(CK_ASAN "Build with asan") +# compiler flags +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3") + if(CK_ASAN) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address") endif(CK_ASAN) + # Set project directories set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) set(RES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/res) -- cgit v1.2.3