[MSPAINT][EXPLORER][SHELL32] Enable ATL asserts in CMake

CORE-17505

In MSVC builds they would not work reliably when enabled in the precompiled header
This commit is contained in:
Mark Jansen 2022-09-10 17:27:50 +02:00
parent 86addae3cc
commit 55343f04b0
No known key found for this signature in database
GPG Key ID: B39240EE84BEAE8B
7 changed files with 16 additions and 12 deletions

View File

@ -2,6 +2,10 @@ project(MSPAINT)
add_definitions(-DINITGUID)
if(DBG)
add_definitions(-D_DEBUG=1) # CORE-17505
endif()
list(APPEND SOURCE
dialogs.cpp
dib.cpp

View File

@ -6,10 +6,6 @@
#undef _DEBUG
#endif
#if DBG && !defined(_DEBUG)
#define _DEBUG
#endif
#include <stdarg.h>
#include <windef.h>

View File

@ -1,5 +1,9 @@
PROJECT(SHELL)
if(DBG)
add_definitions(-D_DEBUG=1) # CORE-17505
endif()
list(APPEND SOURCE
appbar.cpp
desktop.cpp

View File

@ -9,10 +9,6 @@
#define WIN7_COMPAT_MODE 1
#endif
#if DBG && !defined(_DEBUG)
#define _DEBUG // CORE-17505
#endif
#include <stdio.h>
#include <tchar.h>

View File

@ -13,6 +13,10 @@ add_definitions(
-D_SHELL32_
-D_WINE)
if(DBG)
add_definitions(-D_DEBUG=1) # CORE-17505
endif()
list(APPEND SOURCE
CActiveDesktop.cpp
CActiveDesktop.h

View File

@ -1,10 +1,6 @@
#ifndef _PRECOMP_H__
#define _PRECOMP_H__
#if DBG && !defined(_DEBUG)
#define _DEBUG // CORE-17505
#endif
#include <stdarg.h>
#include <assert.h>

View File

@ -4,6 +4,10 @@ add_definitions(
-DUNICODE
-D_UNICODE)
if(DBG)
add_definitions(-D_DEBUG=1) # CORE-17505
endif()
list(APPEND SOURCE
CMenuBand.cpp
CMenuDeskBar.cpp