diff --git a/runtime/platform/test/CMakeLists.txt b/runtime/platform/test/CMakeLists.txt index fee7566da3d..dd480ee0953 100644 --- a/runtime/platform/test/CMakeLists.txt +++ b/runtime/platform/test/CMakeLists.txt @@ -33,8 +33,9 @@ et_cxx_test( # # et_cxx_test(platform_death_test SOURCES executor_pal_death_test.cpp) -# No weak function symbols Windows/MSVC, thus PAL intercept is not supported. -if(NOT WIN32) +# No weak function symbols on Windows/MSVC, thus PAL intercept doesn't work. +# Skip logging tests in Release mode. +if(NOT WIN32 AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") et_cxx_test(logging_test SOURCES logging_test.cpp stub_platform.cpp) set_source_files_properties( logging_test.cpp PROPERTIES COMPILE_DEFINITIONS "ET_MIN_LOG_LEVEL=Debug"