Merge pull request #5 from danielreuther/master-windows-changes-gcc11-fix

Fix compilation on GCC 11
This commit is contained in:
Felipe 2022-02-08 18:04:58 -03:00 committed by GitHub
commit 733d612b18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ if(NOT ntdll_LIBRARY)
endif(NOT ntdll_LIBRARY)
target_link_libraries(windows-notification libdino ${shlwapi_LIBRARY} ${ntdll_LIBRARY} ${WINDOWS_NOTIFICATION_PACKAGES})
target_compile_features(windows-notification PRIVATE cxx_std_20)
target_compile_features(windows-notification PRIVATE cxx_std_17)
target_compile_definitions(windows-notification PRIVATE WINRT_GLIB_H_INSIDE)
target_compile_options(windows-notification PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-iquote ${PROJECT_SOURCE_DIR}/yolort/include/winrt/yolort_impl>)
add_dependencies(windows-notification yolort)