diff options
author | Brad King <brad.king@kitware.com> | 2015-08-31 13:48:39 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-08-31 13:48:39 (GMT) |
commit | 08ae6ced4d5bbdb536a79e561eed54b28ae56836 (patch) | |
tree | 37057ae8985f74c40a1ac591cae4f2d0f9a640f9 /Source/CMakeLists.txt | |
parent | e18f6fe276ea3ca576bb5f8fb910a6532280d900 (diff) | |
parent | ac0bb4333d13e633e26d107f288162d7d6a37b3a (diff) | |
download | CMake-08ae6ced4d5bbdb536a79e561eed54b28ae56836.zip CMake-08ae6ced4d5bbdb536a79e561eed54b28ae56836.tar.gz CMake-08ae6ced4d5bbdb536a79e561eed54b28ae56836.tar.bz2 |
Merge topic 'vs-store-phone-cert-thumbs'
ac0bb433 VS: Windows Store/Phone package cert thumbprint
92b835ec Simplify condition for using rpcrt4 library on Windows
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 428b364..16b9ea1 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -556,9 +556,10 @@ if(APPLE) target_link_libraries(CMakeLib "-framework CoreFoundation") endif() -if(CMAKE_BUILD_ON_VISUAL_STUDIO OR MINGW) - # We need the rpcrt4 library for at least the VS7-VC10 generators. - target_link_libraries(CMakeLib rpcrt4) +if(WIN32 AND NOT UNIX) + # We need the rpcrt4 library on Windows. + # We need the crypt32 library on Windows for crypto/cert APIs. + target_link_libraries(CMakeLib rpcrt4 crypt32) endif() # |