summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorSoji Yamakawa <soji@andrew.cmu.edu>2016-11-04 16:02:22 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-09 21:19:07 (GMT)
commit883bd34a1fa31273929c7baf2f43b3c6f5ec0c01 (patch)
tree4505cdc5e38feabd73d036374ce140160f07aeec /Modules/Platform
parent2a567c68ce6605071f3e21638560493b71ed2841 (diff)
downloadCMake-883bd34a1fa31273929c7baf2f43b3c6f5ec0c01.zip
CMake-883bd34a1fa31273929c7baf2f43b3c6f5ec0c01.tar.gz
CMake-883bd34a1fa31273929c7baf2f43b3c6f5ec0c01.tar.bz2
VS: Treat libraries ending in `.targets` as msbuild imports
Generate `<Import Project="..." .../>` to import the `.targets` files into `.vcxproj` files. Closes: #16340
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Windows.cmake b/Modules/Platform/Windows.cmake
index 9a937a7..d8b3957 100644
--- a/Modules/Platform/Windows.cmake
+++ b/Modules/Platform/Windows.cmake
@@ -17,6 +17,7 @@ set(CMAKE_IMPORT_LIBRARY_SUFFIX ".lib")
set(CMAKE_EXECUTABLE_SUFFIX ".exe") # .exe
set(CMAKE_LINK_LIBRARY_SUFFIX ".lib")
set(CMAKE_DL_LIBS "")
+set(CMAKE_EXTRA_LINK_EXTENSIONS ".targets")
set(CMAKE_FIND_LIBRARY_PREFIXES "")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")