vcpkg-wip
Duncan Ogilvie 4 years ago
parent 5bdb638e0d
commit a9399bfa92

2
CMakeLists.txt generated

@ -23,6 +23,8 @@ if(CMKR_ROOT_PROJECT)
configure_file(cmake.toml cmake.toml COPYONLY)
endif()
include("cmake/O2.cmake")
project(cmkr
LANGUAGES
CXX

@ -7,6 +7,7 @@ version = "0.1.4"
description = "CMakeLists generator from TOML"
languages = ["CXX"]
subdirs = ["third_party", "tests"]
include-before = ["cmake/O2.cmake"]
[target.cmkr]
type = "executable"

@ -0,0 +1,6 @@
# Modify compile flags to change optimization level from O3 to O2
if(MSVC)
set(CMAKE_CXX_FLAGS_RELEASE "/Od /Ob2 /DNDEBUG")
else()
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
endif()
Loading…
Cancel
Save