diff options
Diffstat (limited to 'third-party')
-rw-r--r-- | third-party/cmake/LibvtermCMakeLists.txt | 5 | ||||
-rw-r--r-- | third-party/cmake/libtermkeyCMakeLists.txt | 2 |
2 files changed, 4 insertions, 3 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 diff --git a/third-party/cmake/libtermkeyCMakeLists.txt b/third-party/cmake/libtermkeyCMakeLists.txt index c55da7929a..af54c1daec 100644 --- a/third-party/cmake/libtermkeyCMakeLists.txt +++ b/third-party/cmake/libtermkeyCMakeLists.txt @@ -4,7 +4,7 @@ project(libtermkey) add_definitions(-D _CRT_SECURE_NO_WARNINGS) add_definitions(-DHAVE_UNIBILIUM) if(NOT MSVC) - add_definitions(-std=c99) + add_compile_options(-std=c99) endif() include_directories(${PROJECT_BINARY_DIR}/t) |