diff options
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
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) |