Skip to content

Commit

Permalink
Fix msvc issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuchfink committed Mar 10, 2023
1 parent 1247253 commit 21a32fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ endfunction(set_cxx_standard)

check_cxx_compiler_flag("-std=gnu++14" HAS_GNUPP14)
check_cxx_compiler_flag("-std=gnu++17" HAS_GNUPP17)
if(HAS_GNUPP17)
if(HAS_GNUPP17 OR ${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
set_cxx_standard(17 "-std=gnu++17")
elseif (HAS_GNUPP14)
set_cxx_standard(14 "-std=gnu++14")
Expand Down
1 change: 1 addition & 0 deletions src/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Fixed a bug that caused the last codon of the -2 reading frame to be translated
incorrectly.
- Reduced the memory use of the clustering workflow.
- Updated the bundled NCBI toolkit to the latest version.

[2.1.4]
- Leading spaces are now trimmed and tabulator characters escaped as `\t`
Expand Down
2 changes: 1 addition & 1 deletion src/util/log_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct task_timer
{}
~task_timer()
{
#if __cplusplus >= 201703L
#if __cplusplus >= 201703L || defined(_MSC_VER)
if (!std::uncaught_exceptions())
#else
if (!std::uncaught_exception())
Expand Down

0 comments on commit 21a32fc

Please sign in to comment.