Skip to content

Commit

Permalink
re-added permissive flag to msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarrr committed Sep 7, 2023
1 parent 1721c85 commit e551a13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ if(NOT LIBSTX_HAS_STD_THREAD)
list(APPEND STX_COMPILER_DEFS "STX_NO_STD_THREAD")
endif()

if(MSVC)
target_compile_options(stx PUBLIC "/permissive-")
endif()

file(GLOB STX_SOURCE_FILES_LIST src/*.cc)

add_library(stx STATIC ${STX_SOURCE_FILES_LIST})
Expand Down

0 comments on commit e551a13

Please sign in to comment.