Skip to content

Commit

Permalink
Update .natvis file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
KRM7 committed Nov 26, 2023
1 parent dae5f8b commit aebc880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down Expand Up @@ -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 "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>"
Expand Down

0 comments on commit aebc880

Please sign in to comment.