Commit 9e0aedb7 authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

MSVC /W4 enabled

parent eb195d46
cmake_minimum_required (VERSION 3.13)
cmake_policy(SET CMP0076 NEW)
#cmake_minimum_required (VERSION 3.15)
#cmake_policy(SET CMP0076 NEW)
#cmake_policy(SET CMP0092 NEW)
find_package(BISON 3.4)
find_package(FLEX 2.6.4)
......@@ -62,15 +63,25 @@ function(COMMON_OPTIONS TARGET)
# message("LLVM_LIBS_USED = ${LLVM_LIBS_USED}")
target_link_libraries(${TARGET} PUBLIC ${LLVM_LIBS_USED})
endif()
SET_TARGET_OPTIONS(${TARGET} "-Wall" "")
SET_TARGET_OPTIONS(${TARGET} "-Wall" "/W4")
SET_TARGET_OPTIONS(${TARGET} "" "/we5038")
SET_TARGET_OPTIONS(${TARGET} "" "/D_CRT_SECURE_NO_WARNINGS")
SET_TARGET_OPTIONS(${TARGET} "" "/D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4005")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4100")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4127")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4141")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4146")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4244")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4245")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4267")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4310")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4324")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4456")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4458")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4459")
SET_TARGET_OPTIONS(${TARGET} "" "/wd4624")
SET_TARGET_LINK_OPTIONS(${TARGET} "" "/IGNORE:4099") # missing pdb
......
# CMakeList.txt : Top-level CMake project file
#
cmake_minimum_required (VERSION 3.13)
cmake_minimum_required (VERSION 3.15)
cmake_policy(SET CMP0076 NEW)
cmake_policy(SET CMP0092 NEW)
enable_testing()
project ("cecko")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment