diff --git a/common.cmake b/common.cmake index 146532041..f7634f394 100644 --- a/common.cmake +++ b/common.cmake @@ -10,7 +10,9 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) # Compile option if(MSVC) target_compile_options(${PROJECT_NAME} PUBLIC "/W4") - target_compile_options(${PROJECT_NAME} PUBLIC "/MT") + if(NOT USE_HILS) # /MT option conflicts /clr option in the HILS config. + target_compile_options(${PROJECT_NAME} PUBLIC "/MT") + endif() target_compile_options(${PROJECT_NAME} PUBLIC "/source-charset:utf-8") else() target_compile_options(${PROJECT_NAME} PUBLIC "-Wall")