diff options
author | Mark Meserve <mark.meserve@ni.com> | 2017-07-10 16:54:54 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:59 -0800 |
commit | b7b4718b3120dbb31fe08374836741dd3f1f55b5 (patch) | |
tree | 0880e1ea5c809f42b96f7c7a6b2153354303d901 /mpm/CMakeLists.txt | |
parent | 5c6473505770bcd9cf20a03b179f2d04b713a939 (diff) | |
download | uhd-b7b4718b3120dbb31fe08374836741dd3f1f55b5.tar.gz uhd-b7b4718b3120dbb31fe08374836741dd3f1f55b5.tar.bz2 uhd-b7b4718b3120dbb31fe08374836741dd3f1f55b5.zip |
mpm: fix cmake on windows targets
Diffstat (limited to 'mpm/CMakeLists.txt')
-rw-r--r-- | mpm/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mpm/CMakeLists.txt b/mpm/CMakeLists.txt index 35330cd39..0d7f33049 100644 --- a/mpm/CMakeLists.txt +++ b/mpm/CMakeLists.txt @@ -136,7 +136,14 @@ TARGET_LINK_LIBRARIES(usrp-periphs udev ${Boost_LIBRARIES} ) -INSTALL(TARGETS usrp-periphs LIBRARY DESTINATION ${LIBRARY_DIR} COMPONENT libraries) + +IF(WIN32) + SET(DESTINATION_KEYWORD RUNTIME) +ELSE() + SET(DESTINATION_KEYWORD LIBRARY) +ENDIF() +INSTALL(TARGETS usrp-periphs ${DESTINATION_KEYWORD} DESTINATION ${LIBRARY_DIR} COMPONENT libraries) + SET(USRP_PERIPHS_MAJOR 0) SET(USRP_PERIPHS_MINOR 1) SET(USRP_PERIPHS_PATCH 0) |