From 57d5ca50d249c414dea98f97a0f7819053c7be59 Mon Sep 17 00:00:00 2001 From: Shahid <65172780+Shahid-Roofi-Khan@users.noreply.github.com> Date: Wed, 6 Oct 2021 15:44:53 +0500 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fe164f..d0d903a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,11 @@ if(NOT CMAKE_BUILD_TYPE) endif() message(STATUS "Started CMake for ${PROJECT_NAME} v${PROJECT_VERSION}...\n") +if (UNIX) + add_compile_options("$<$:-D_DEBUG>") #this will allow to use same _DEBUG macro available in both Linux as well as Windows - MSCV environment. Easy to put Debug specific code. +endif (UNIX) + + # # Setup alternative names #