Drop support with osx, add system-related definitions

This commit is contained in:
JackBoosY 2022-09-22 02:35:13 -07:00
parent 12f16cac36
commit c7ba8be6d8
2 changed files with 7 additions and 1 deletions

View File

@ -84,6 +84,12 @@ add_library(Vlpp STATIC ${CORE_SRCS})
target_compile_definitions(Vlpp PRIVATE UNICODE)
target_compile_definitions(Vlpp PRIVATE _UNICODE)
if (MSVC)
target_compile_definitions(Vlpp PUBLIC VCZH_MSVC)
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_definitions(Vlpp PUBLIC VCZH_GCC)
endif()
if (EXTRA_DEFINES)
target_compile_definitions(Vlpp PUBLIC ${EXTRA_DEFINES})
endif()

View File

@ -4,7 +4,7 @@
"description": "Common C++ construction, including string operation / generic container / linq / General-LR parser generator / multithreading / reflection for C++ / etc",
"homepage": "https://github.com/vczh-libraries/Release",
"license": null,
"supports": "!uwp",
"supports": "!(uwp | osx)",
"dependencies": [
{
"name": "vcpkg-cmake",