Fix cplusplus macro on windows

This commit is contained in:
Nicolas Werner 2021-03-05 15:23:48 +01:00
parent 13cdbd5227
commit a305c2689c
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 3 additions and 0 deletions

View File

@ -601,6 +601,9 @@ if(APPLE)
elseif(WIN32)
target_compile_definitions(nheko PRIVATE WIN32_LEAN_AND_MEAN)
target_link_libraries (nheko PRIVATE ${NTDLIB} Qt5::WinMain)
if(MSVC)
target_compile_options(nheko PUBLIC "/Zc:__cplusplus")
endif()
else()
target_link_libraries (nheko PRIVATE Qt5::DBus)
endif()