Skip to content

Commit

Permalink
Fix libvterm compilation on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed Oct 21, 2024
1 parent a3b0630 commit a7f0617
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions deps/vterm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ target_include_directories(vterm PRIVATE

if(MSVC)
target_compile_definitions(vterm PRIVATE
-D_CRT_SECURE_NO_WARNINGS
-D_CRT_NONSTDC_NO_DEPRECATE
_CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_DEPRECATE
)
else()
target_compile_definitions(vterm PRIVATE
-std=c99
)
set_property(TARGET vterm PROPERTY C_STANDARD 99)
set_property(TARGET vterm PROPERTY C_STANDARD_REQUIRED ON)
endif()

0 comments on commit a7f0617

Please sign in to comment.