revise CMakeLists.txt

This commit is contained in:
SCG82 2020-01-06 13:38:32 -08:00
parent e5cacbb3e6
commit ee0c02888a
1 changed files with 6 additions and 1 deletions

View File

@ -1,12 +1,17 @@
cmake_minimum_required(VERSION 3.15)
project(dylibbundler)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
string(REPLACE "-O3" "-O2" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
#string(REPLACE "-std=c++1z" "-std=c++2a" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
add_compile_options(-pipe -Wall -Wextra -Wpedantic)
include_directories(src)
add_executable(dylibbundler