Skip to content

Commit 8d6a98b

Browse files
committed
final CMake tweaks
1 parent 465e325 commit 8d6a98b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
cmake_minimum_required(VERSION 3.1)
1+
cmake_minimum_required(VERSION 3.7)
22

33
project(tlc LANGUAGES C)
44

55
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
66

7+
add_compile_options(-Wall)
8+
# notsupp in 3.7 string(PREPEND CMAKE_C_FLAGS_DEBUG "-O0 ")
9+
set(CMAKE_C_FLAGS_DEBUG "-O0 ${CMAKE_C_FLAGS_DEBUG}")
710
if (CMAKE_BUILD_TYPE STREQUAL Debug)
811
add_definitions(-DDEBUG)
912
endif()

0 commit comments

Comments
 (0)