aboutsummaryrefslogtreecommitdiff
path: root/third-party/cmake/LibvtermCMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'third-party/cmake/LibvtermCMakeLists.txt')
-rw-r--r--third-party/cmake/LibvtermCMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/third-party/cmake/LibvtermCMakeLists.txt b/third-party/cmake/LibvtermCMakeLists.txt
index dad3ef62c2..16c4d542c4 100644
--- a/third-party/cmake/LibvtermCMakeLists.txt
+++ b/third-party/cmake/LibvtermCMakeLists.txt
@@ -5,9 +5,10 @@ include(GNUInstallDirs)
find_package(Perl)
if(MSVC)
- add_definitions(/W3 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE)
+ add_compile_options(/W3)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE)
else()
- add_definitions(-Wall -std=c99)
+ add_compile_options(-Wall -std=c99)
endif()
# Generate includes from tables