Skip to content
Snippets Groups Projects
Verified Commit 8639be05 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Hotfix for MinGW and older GCC

parent d39f5092
No related branches found
No related tags found
No related merge requests found
Pipeline #27486 failed
......@@ -42,6 +42,10 @@ if (vkcv_build_debug)
endif()
endif()
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.0.0"))
set(vkcv_flags ${vkcv_flags} " -std=c++2a")
endif()
# configure everything to use the required dependencies
include(${vkcv_config}/Libraries.cmake)
......
......@@ -97,8 +97,11 @@ namespace vkcv {
#endif
}
explicit event(bool locked = false) :
m_semaphore(locked? 1 : 0) {}
explicit event(bool locked = false)
#ifndef __MINGW32__
: m_semaphore(locked? 1 : 0)
#endif
{}
event(const event &other) = delete;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment