Rename our allwpilib (which is now 2020) to not have 2019 in the name
Change-Id: I3c07f85ed32ab8b97db765a9b43f2a6ce7da964a
diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake
new file mode 100644
index 0000000..0eb9733
--- /dev/null
+++ b/cmake/modules/CompileWarnings.cmake
@@ -0,0 +1,7 @@
+macro(wpilib_target_warnings target)
+ if(NOT MSVC)
+ target_compile_options(${target} PRIVATE -Wall -pedantic -Wextra -Werror -Wno-unused-parameter -Wno-error=deprecated-declarations)
+ else()
+ target_compile_options(${target} PRIVATE /wd4244 /wd4267 /wd4146 /WX /wd4996)
+ endif()
+endmacro()