aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake
diff options
context:
space:
mode:
authorCiro Nishiguchi <cironishiguchi@gmail.com>2018-08-21 13:41:43 -0500
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-08-22 17:42:39 -0700
commit27a2182974869539c66a746a5f449d8ded0fb307 (patch)
tree54a26bf0bbb651844484ffa395881015f224295d /host/cmake
parent3814e07606514a650b99e4909bd2fb1bdfadc2e2 (diff)
downloaduhd-27a2182974869539c66a746a5f449d8ded0fb307.tar.gz
uhd-27a2182974869539c66a746a5f449d8ded0fb307.tar.bz2
uhd-27a2182974869539c66a746a5f449d8ded0fb307.zip
uhd: Define UHD_API as empty string when building static lib
Fixes #2484 When building uhd host as a static library on Windows, UHD_API is defined as __declspec(dllimport). This results in MSVC returning error C2491 during compilation. Added a preprocessor define UHD_STATIC_LIB in cmake and made the config headers set UHD_API to empty string when UHD_STATIC_LIB is defined.
Diffstat (limited to 'host/cmake')
0 files changed, 0 insertions, 0 deletions