Skip to content

Commit ae13cfb

Browse files
committed
resolve -Wextra -Wall not present in windows
1 parent 5250cb5 commit ae13cfb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ target_include_directories(${PROJECT_NAME} INTERFACE
6666
$<INSTALL_INTERFACE:include>
6767
)
6868

69-
target_compile_options(${PROJECT_NAME} INTERFACE $<$<CONFIG:Debug>:-Wall -Wextra>)
69+
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
70+
target_compile_options(${PROJECT_NAME} INTERFACE $<$<CONFIG:Debug>:/W4>)
71+
else()
72+
target_compile_options(${PROJECT_NAME} INTERFACE $<$<CONFIG:Debug>:-Wall -Wextra>)
73+
endif()
74+
7075

7176
if(ORYX_KVDB_INSTALL)
7277
include(GNUInstallDirs)

0 commit comments

Comments
 (0)