Skip to content

Commit

Permalink
build: remove /TP usage on MSVC
Browse files Browse the repository at this point in the history
This removes the workaround for pre-VS2015 compilers which did not
support sufficient amounts of the C99 standard. As VS0213 is now no
longer supported, remove the workaround as we can expect users to be at
supported Visual Studio release (VS2019+).
  • Loading branch information
compnerd committed Jan 4, 2024
1 parent 0d0e8e4 commit 3f053ac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ add_compile_options($<$<CONFIG:Debug>:-DCMARK_DEBUG_NODES>)
function(cmark_add_compile_options target)
if(MSVC)
target_compile_options(${target} PRIVATE /W4 /wd4706 /we4244 /we4267)
if(MSVC_VERSION LESS 1800)
target_compile_options(${target} PRIVATE /TP)
endif()
target_compile_definitions(${target} PRIVATE _CRT_SECURE_NO_WARNINGS)
else()
target_compile_options(${target} PRIVATE
Expand Down

0 comments on commit 3f053ac

Please sign in to comment.