-Wextra
This commit is contained in:
parent
788f86a283
commit
4d87ef4bf4
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
project(PDP-11)
|
||||
cmake_minimum_required(VERSION 3.9)
|
||||
|
||||
add_compile_options(-Wall -pedantic)
|
||||
add_compile_options(-Wall -pedantic -Wextra)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
@ -28,8 +28,8 @@ add_executable(
|
|||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT supported)
|
||||
|
||||
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
||||
#set(CMAKE_BUILD_TYPE Debug)
|
||||
#set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
|
||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
||||
|
|
Loading…
Add table
Reference in a new issue