From aebc88086ddfa13240edc536f3091fa81e2a5904 Mon Sep 17 00:00:00 2001 From: KRM7 <70973547+KRM7@users.noreply.github.com> Date: Sun, 26 Nov 2023 17:42:36 +0100 Subject: [PATCH] Update .natvis file handling --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb809e8e..a991af0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,7 +73,7 @@ if(MSVC) # MSVC style compiler interface set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${GAPP_OPT_FLAGS}") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${GAPP_OPT_FLAGS}") - link_libraries("-DEBUG:FULL" "-pdbaltpath:%_PDB%" "-NATVIS:${CMAKE_CURRENT_SOURCE_DIR}/gapp.natvis") + link_libraries("-DEBUG:FULL" "-pdbaltpath:%_PDB%") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${GAPP_OPT_LINK_FLAGS}") set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} ${GAPP_OPT_LINK_FLAGS}") set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} ${GAPP_OPT_LINK_FLAGS}") @@ -129,7 +129,7 @@ endif() file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") file(GLOB_RECURSE HEADERS CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.hpp") -add_library(gapp ${SOURCES} ${HEADERS}) +add_library(gapp ${SOURCES} ${HEADERS} ${CMAKE_CURRENT_SOURCE_DIR}/gapp.natvis) add_library(gapp::gapp ALIAS gapp) target_include_directories(gapp SYSTEM INTERFACE "$"