From 22d042442acd9e930da70a4de0abefbc65648db7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 1 Aug 2020 13:33:23 +0800 Subject: [PATCH] cmake: use add_compile_options for passing compile options add_definitions() is for, well, adding definitions. Signed-off-by: Kefu Chai --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ccf4c27d6b8f..b4f9c74cb9231 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,9 +71,9 @@ include_directories( if(WIN32) include_directories( - ${PROJECT_SOURCE_DIR}/src/include/win32) + ${PROJECT_SOURCE_DIR}/src/include/win32) # Boost complains if winsock2.h (or windows.h) is included before asio.hpp. - add_definitions(-include winsock_wrapper.h) + add_compile_options(-include winsock_wrapper.h) endif() if(FREEBSD) -- 2.39.5