mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix cplusplus macro on windows
This commit is contained in:
parent
13cdbd5227
commit
a305c2689c
1 changed files with 3 additions and 0 deletions
|
@ -601,6 +601,9 @@ if(APPLE)
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
target_compile_definitions(nheko PRIVATE WIN32_LEAN_AND_MEAN)
|
target_compile_definitions(nheko PRIVATE WIN32_LEAN_AND_MEAN)
|
||||||
target_link_libraries (nheko PRIVATE ${NTDLIB} Qt5::WinMain)
|
target_link_libraries (nheko PRIVATE ${NTDLIB} Qt5::WinMain)
|
||||||
|
if(MSVC)
|
||||||
|
target_compile_options(nheko PUBLIC "/Zc:__cplusplus")
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
target_link_libraries (nheko PRIVATE Qt5::DBus)
|
target_link_libraries (nheko PRIVATE Qt5::DBus)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue