diff --git a/CMakeModules/Gn.cmake b/CMakeModules/Gn.cmake index 7c9a67f..ccd033c 100644 --- a/CMakeModules/Gn.cmake +++ b/CMakeModules/Gn.cmake @@ -1,8 +1,12 @@ -set(_GEN_ARGS use_gold=false target_cpu=\\"${TARGET_CPU}\\" target_os=\\"${TARGET_OS}\\" is_component_build=false is_clang=false use_custom_libcxx=false use_custom_libcxx_for_host=false rtc_use_protobuf=false) +set(_GEN_ARGS use_gold=false target_cpu=\\"${TARGET_CPU}\\" target_os=\\"${TARGET_OS}\\" is_component_build=false use_custom_libcxx=false use_custom_libcxx_for_host=false) + +if (MSVC) + set(_GEN_ARGS ${_GEN_ARGS} is_clang=false) + set(_GEN_ARGS ${_GEN_ARGS} enable_iterator_debugging=$<$:true>$<$:false>$<$:false>$<$:false>) +endif(MSVC) if (MSVC OR XCODE) set(_GEN_ARGS ${_GEN_ARGS} is_debug=$<$:true>$<$:false>$<$:false>$<$:false>) - set(_GEN_ARGS ${_GEN_ARGS} enable_iterator_debugging=$<$:true>$<$:false>$<$:false>$<$:false>) set(_NINJA_BUILD_DIR out/$<$:Debug>$<$:Release>$<$:Release>$<$:Release>) elseif (CMAKE_BUILD_TYPE MATCHES Debug) set(_GEN_ARGS ${_GEN_ARGS} is_debug=true)