mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:25:56 +00:00
[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:
parent
86addae3cc
commit
55343f04b0
7 changed files with 16 additions and 12 deletions
|
@ -2,6 +2,10 @@ project(MSPAINT)
|
||||||
|
|
||||||
add_definitions(-DINITGUID)
|
add_definitions(-DINITGUID)
|
||||||
|
|
||||||
|
if(DBG)
|
||||||
|
add_definitions(-D_DEBUG=1) # CORE-17505
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
dialogs.cpp
|
dialogs.cpp
|
||||||
dib.cpp
|
dib.cpp
|
||||||
|
|
|
@ -6,10 +6,6 @@
|
||||||
#undef _DEBUG
|
#undef _DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DBG && !defined(_DEBUG)
|
|
||||||
#define _DEBUG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
PROJECT(SHELL)
|
PROJECT(SHELL)
|
||||||
|
|
||||||
|
if(DBG)
|
||||||
|
add_definitions(-D_DEBUG=1) # CORE-17505
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
appbar.cpp
|
appbar.cpp
|
||||||
desktop.cpp
|
desktop.cpp
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
#define WIN7_COMPAT_MODE 1
|
#define WIN7_COMPAT_MODE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DBG && !defined(_DEBUG)
|
|
||||||
#define _DEBUG // CORE-17505
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,10 @@ add_definitions(
|
||||||
-D_SHELL32_
|
-D_SHELL32_
|
||||||
-D_WINE)
|
-D_WINE)
|
||||||
|
|
||||||
|
if(DBG)
|
||||||
|
add_definitions(-D_DEBUG=1) # CORE-17505
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
CActiveDesktop.cpp
|
CActiveDesktop.cpp
|
||||||
CActiveDesktop.h
|
CActiveDesktop.h
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
#ifndef _PRECOMP_H__
|
#ifndef _PRECOMP_H__
|
||||||
#define _PRECOMP_H__
|
#define _PRECOMP_H__
|
||||||
|
|
||||||
#if DBG && !defined(_DEBUG)
|
|
||||||
#define _DEBUG // CORE-17505
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,10 @@ add_definitions(
|
||||||
-DUNICODE
|
-DUNICODE
|
||||||
-D_UNICODE)
|
-D_UNICODE)
|
||||||
|
|
||||||
|
if(DBG)
|
||||||
|
add_definitions(-D_DEBUG=1) # CORE-17505
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
CMenuBand.cpp
|
CMenuBand.cpp
|
||||||
CMenuDeskBar.cpp
|
CMenuDeskBar.cpp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue