mirror of
https://github.com/Syping/dtranslatebot.git
synced 2025-12-15 08:06:26 +01:00
MSVC fixes
This commit is contained in:
parent
2c4464c134
commit
2ad1bc3aa5
5 changed files with 11 additions and 7 deletions
|
|
@ -58,6 +58,9 @@ find_package(Threads REQUIRED)
|
|||
|
||||
# dtranslatebot Target + Installs
|
||||
add_executable(dtranslatebot ${DTRANSLATEBOT_HEADERS} ${DTRANSLATEBOT_SOURCES})
|
||||
if (MSVC AND MSVC_VERSION GREATER_EQUAL 1914)
|
||||
target_compile_options(dtranslatebot PRIVATE $<$<COMPILE_LANGUAGE:CXX>:/Zc:__cplusplus>)
|
||||
endif()
|
||||
target_link_libraries(dtranslatebot PRIVATE Threads::Threads ${DPP_LIBRARIES})
|
||||
target_include_directories(dtranslatebot PRIVATE ${DPP_INCLUDE_DIR})
|
||||
set_target_properties(dtranslatebot PROPERTIES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue