mirror of
https://github.com/charlesthobe/chdman.git
synced 2024-11-24 07:25:31 +00:00
optimization flags
This commit is contained in:
parent
8c75b5ac94
commit
717180eef9
@ -2,6 +2,14 @@ cmake_minimum_required(VERSION 3.18)
|
|||||||
project("chdman CBT edition")
|
project("chdman CBT edition")
|
||||||
#compiler flags are "CMAKE_C_FLAGS" and "CMAKE_CXX_FLAGS"
|
#compiler flags are "CMAKE_C_FLAGS" and "CMAKE_CXX_FLAGS"
|
||||||
|
|
||||||
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
|
endif()
|
||||||
|
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
||||||
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||||
|
set(CMAKE_C_FLAGS_DEBUG "-g")
|
||||||
|
set(CMAKE_C_FLAGS_RELEASE "-O3")
|
||||||
|
|
||||||
add_subdirectory(cmake_subdirs)
|
add_subdirectory(cmake_subdirs)
|
||||||
|
|
||||||
#chdman
|
#chdman
|
||||||
|
Loading…
Reference in New Issue
Block a user