This commit is contained in:
folkert van heusden 2022-04-09 16:22:11 +02:00
parent 788f86a283
commit 4d87ef4bf4

View file

@ -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)