summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/opentrack-boilerplate.cmake3
1 files changed, 3 insertions, 0 deletions
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)