diff options
| author | fengweihao <[email protected]> | 2023-12-08 18:12:53 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2023-12-08 18:12:53 +0800 |
| commit | b801ca9d3b652c9aa494cb3b3fb2e0a5fbe31731 (patch) | |
| tree | 991624d47cb56565ea2409e43de580d2736cf732 /CMakeLists.txt | |
| parent | f1bf75367902e1e1ad20a96a6ed1aed528f89d6d (diff) | |
TSG-17840 Proxy适配日志结构变更v4.8.50-20231208
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b467b2d..81690c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,13 @@ add_definitions(-D_GNU_SOURCE) set(CMAKE_CXX_STANDARD 11) set(CMAKE_C_STANDARD 11) +if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd") +endif () + if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo) endif() |
