mirror of https://github.com/orefkov/simstr.git
Исправил подключение natvis файла при сборке с генератором Visual Studio
This commit is contained in:
parent
5b81228a03
commit
6905c9bb76
|
|
@ -5,7 +5,7 @@ include(FetchContent)
|
||||||
|
|
||||||
project(
|
project(
|
||||||
simstr
|
simstr
|
||||||
VERSION 1.2.4
|
VERSION 1.2.5
|
||||||
DESCRIPTION "Yet another string library"
|
DESCRIPTION "Yet another string library"
|
||||||
HOMEPAGE_URL "https://github.com/orefkov/simstr"
|
HOMEPAGE_URL "https://github.com/orefkov/simstr"
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
|
|
@ -48,20 +48,17 @@ if(EMSCRIPTEN)
|
||||||
endif()
|
endif()
|
||||||
endif(EMSCRIPTEN)
|
endif(EMSCRIPTEN)
|
||||||
|
|
||||||
if (${CMAKE_BUILD_TYPE} STREQUAL Debug)
|
message("Configuring simstr for [${CMAKE_BUILD_TYPE}]")
|
||||||
if (NOT CMAKE_CXX_SIMULATE_ID)
|
|
||||||
set (CMAKE_CXX_SIMULATE_ID "None")
|
|
||||||
endif()
|
|
||||||
# Для MSVC подключаем natvis файл для красивой отладки
|
# Для MSVC подключаем natvis файл для красивой отладки
|
||||||
if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC OR ${CMAKE_CXX_SIMULATE_ID} STREQUAL MSVC)
|
if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC OR "${CMAKE_CXX_SIMULATE_ID} " STREQUAL "MSVC ")
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET simstr_simstr PRE_BUILD
|
TARGET simstr_simstr PRE_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/for_debug/simstr.natvis
|
${CMAKE_CURRENT_SOURCE_DIR}/for_debug/simstr.natvis
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/simstr.natvis
|
${CMAKE_BINARY_DIR}/simstr.natvis
|
||||||
)
|
)
|
||||||
target_link_options(simstr_simstr PUBLIC "/natvis:simstr.natvis")
|
target_link_options(simstr_simstr PUBLIC "/natvis:${CMAKE_BINARY_DIR}/simstr.natvis")
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# simstr - String object and function library
|
# simstr - String object and function library
|
||||||
[](https://github.com/orefkov/simstr/actions/workflows/cmake-multi-platform.yml)
|
[](https://github.com/orefkov/simstr/actions/workflows/cmake-multi-platform.yml)
|
||||||
|
|
||||||
Version 1.2.4.
|
Version 1.2.5.
|
||||||
|
|
||||||
<span class="obfuscator"><a href="readme_ru.md">On Russian | По-русски</a></span>
|
<span class="obfuscator"><a href="readme_ru.md">On Russian | По-русски</a></span>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# simstr - библиотека строковых объектов и функций
|
# simstr - библиотека строковых объектов и функций
|
||||||
[](https://github.com/orefkov/simstr/actions/workflows/cmake-multi-platform.yml)
|
[](https://github.com/orefkov/simstr/actions/workflows/cmake-multi-platform.yml)
|
||||||
|
|
||||||
Версия 1.2.4.
|
Версия 1.2.5.
|
||||||
|
|
||||||
<span class="obfuscator"><a href="readme.md">On English | По-английски</a></span>
|
<span class="obfuscator"><a href="readme.md">On English | По-английски</a></span>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue