summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-22 15:30:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-22 15:30:17 +0100
commitc94ad977919bb3110167ef916e28552fc44af082 (patch)
tree9805010b16814848e45be5085abb7e84c723a8c5 /cmake
parenta974e34c11aa1dcda3c8c72c6d2a366d6efba052 (diff)
cmake: add -GA for MSVC
Diffstat (limited to 'cmake')
-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)