diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-03 13:19:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-03 13:19:30 +0200 |
commit | cbd3bf906852f831cb5b8abfde55ad324b25fbeb (patch) | |
tree | 88c72d86143bbb8e65c86562b91364631753afb9 /cmake/opentrack-boilerplate.cmake | |
parent | b292aaf2b9d49847e014a3fdda3df287229ca0a0 (diff) |
cmake: conditionalize .pdb install on MSVC
I haven't written the binutils equivalent yet.
The official builds will come with debug info but it defaults
to disabled.
cf. https://github.com/opentrack/opentrack/issues/605#issuecomment-298856218
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index da2737af..f716ec00 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -186,7 +186,10 @@ function(otr_module n_) else() install(TARGETS "${n}" ${opentrack-hier-str} ${opentrack-perms}) endif() - otr_install_pdb_current_project(${n}) + set(SDK_INSTALL_DEBUG_INFO FALSE CACHE BOOL "Whether to build and install debug info at install time") + if(SDK_INSTALL_DEBUG_INFO) + otr_install_pdb_current_project(${n}) + endif() endif() otr_compat(${n}) |