From c94ad977919bb3110167ef916e28552fc44af082 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Feb 2019 15:30:17 +0100 Subject: cmake: add -GA for MSVC --- cmake/opentrack-boilerplate.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index f4a5daa8..b9e988de 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -151,6 +151,9 @@ function(otr_module n_) if(arg_EXECUTABLE) add_executable(${n} ${subsys} "${${n}-all}") + if(MSVC) + target_compile_options(${n} PRIVATE -GA) + endif() else() set(link-mode SHARED) if (arg_STATIC) -- cgit v1.2.3