mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
added GSL_ prefix to VS_ADD_NATIVE_VISUALIZERS
This commit is contained in:
parent
6432f920ea
commit
cfb4db0c1e
@ -70,13 +70,13 @@ endif()
|
|||||||
|
|
||||||
if (CMAKE_VERSION VERSION_GREATER 3.7.8)
|
if (CMAKE_VERSION VERSION_GREATER 3.7.8)
|
||||||
if (MSVC_IDE)
|
if (MSVC_IDE)
|
||||||
option(VS_ADD_NATIVE_VISUALIZERS "Configure project to use Visual Studio native visualizers" TRUE)
|
option(GSL_VS_ADD_NATIVE_VISUALIZERS "Configure project to use Visual Studio native visualizers" TRUE)
|
||||||
else()
|
else()
|
||||||
set(VS_ADD_NATIVE_VISUALIZERS FALSE CACHE INTERNAL "Native visualizers are Visual Studio extension" FORCE)
|
set(GSL_VS_ADD_NATIVE_VISUALIZERS FALSE CACHE INTERNAL "Native visualizers are Visual Studio extension" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# add natvis file to the library so it will automatically be loaded into Visual Studio
|
# add natvis file to the library so it will automatically be loaded into Visual Studio
|
||||||
if(VS_ADD_NATIVE_VISUALIZERS)
|
if(GSL_VS_ADD_NATIVE_VISUALIZERS)
|
||||||
target_sources(GSL INTERFACE
|
target_sources(GSL INTERFACE
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/GSL.natvis>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/GSL.natvis>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user