summaryrefslogtreecommitdiff
path: root/Modules/CMakeFindBinUtils.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-05-12 19:10:21 +0200
committerChristian Pfeiffer <cpfeiffer@live.de>2017-05-20 20:02:51 +0200
commit4eb15824b3092866f9c30d7af3221487c60fab07 (patch)
tree127fc54c5be203b0dfc6112a141adde02c39117c /Modules/CMakeFindBinUtils.cmake
parenta94ae96e6e1b8ef4e169c7c23cf95e0894e648cb (diff)
downloadcmake-4eb15824b3092866f9c30d7af3221487c60fab07.tar.gz
Windows-PGI: Add platform definitions
PGI on Windows should use the Visual C++ linker and librarian and not the ar provided for legacy reasons. The compiler parameters themselves are the same as their Linux parameters and not compatible to MSVC however.
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r--Modules/CMakeFindBinUtils.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index 4c0486e4d5..e4103d0b7c 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -26,6 +26,10 @@ if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CUDA_SIMULATE_ID}" STREQUAL "xMSVC"
+ OR (CMAKE_HOST_WIN32 AND (
+ "x${CMAKE_C_COMPILER_ID}" STREQUAL "xPGI"
+ OR "x${CMAKE_Fortran_COMPILER_ID}" STREQUAL "xPGI"
+ ))
OR (CMAKE_GENERATOR MATCHES "Visual Studio"
AND NOT CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android"))