Skip to content

Commit

Permalink
Replace std::shared_mutex with std::mutex on Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-park committed Apr 21, 2024
1 parent 6494b53 commit 17d4b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ else()
endif()

# Modify source
if(MINGW)
if(MINGW OR CYGWIN)
file(READ ${CMAKE_SOURCE_DIR}/include/singleton_dclp.hpp DCLP)
string(REPLACE "#include <shared_mutex>\n" "" DCLP "${DCLP}")
string(REPLACE "std::shared_lock" "std::lock_guard" DCLP "${DCLP}")
Expand Down

0 comments on commit 17d4b0e

Please sign in to comment.