diff --git a/CMakeLists.txt b/CMakeLists.txt index 430bc747d..35987ac18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,18 +88,18 @@ if(AIMRT_MASTER_PROJECT) endif() endif() - if(MSVC) - add_compile_options(/utf-8 /wd4819) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus") - endif() - - if(WIN32) - add_compile_definitions(NOMINMAX) - endif() - set(CMAKE_EXPORT_COMPILE_COMMANDS ON) endif() +if(MSVC) + add_compile_options(/utf-8 /wd4819) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus") +endif() + +if(WIN32) + add_compile_definitions(NOMINMAX) +endif() + # Build document if(AIMRT_BUILD_DOCUMENT) message(STATUS "gen document ...")