Skip to content

Commit

Permalink
Fixing VS warning compiler flag
Browse files Browse the repository at this point in the history
  • Loading branch information
navaneeth committed Mar 23, 2017
1 parent ee2251a commit 39057fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ if (DISABLE_WITHOUT_ROW_ID_OPTIMIZATION)
endif()

IF(MSVC)
set(CMAKE_C_FLAGS "/Wall /wd\"4255;4100\"")
# We don't want to use MSVC's more secure versions of functions. So suppressing the warnings
add_definitions(-DWIN32 -D_CRT_SECURE_NO_WARNINGS)
set(CMAKE_C_FLAGS "/Wall /wd4255 /wd4100")
# We don't want to use MSVC's more secure versions of functions. So suppressing the warnings
add_definitions(-DWIN32 -D_CRT_SECURE_NO_WARNINGS)
ENDIF()

if (RECORD_EXEC_TIME)
Expand Down

0 comments on commit 39057fb

Please sign in to comment.