Fix building with ninja on windows
authorRay Molenkamp <github@lazydodo.com>
Sun, 26 May 2019 15:25:17 +0000 (09:25 -0600)
committerRay Molenkamp <github@lazydodo.com>
Sun, 26 May 2019 15:25:17 +0000 (09:25 -0600)
Broken by rB161908157d67ee8bcfa0c26917cccdc40e0c67ea

build_files/cmake/platform/platform_win32.cmake

index f52a1f6..3f3b85c 100644 (file)
@@ -191,9 +191,9 @@ if(NOT EXISTS "${LIBDIR}/")
 endif()
 
 # Mark libdir as system headers with a lower warn level, to resolve some warnings
-# that we have very little control over 
+# that we have very little control over
 if(MSVC_VERSION GREATER_EQUAL 1914)
-  add_definitions(/experimental:external /external:templates- /external:I "${LIBDIR}" /external:W0)
+  add_compile_options(/experimental:external /external:templates- /external:I "${LIBDIR}" /external:W0)
 endif()
 
 # Add each of our libraries to our cmake_prefix_path so find_package() could work