From cedd84f839764910f7f7dd5cd97a3ace8c9cc5f7 Mon Sep 17 00:00:00 2001 From: Abdo Roig-Maranges Date: Tue, 27 Dec 2016 20:29:03 +0100 Subject: [PATCH] cmake: only install PDB files with msvc Otherwise cmake windows builds with the mingw compiler are broken. --- build/cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index 99495ed..f192009 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -194,7 +194,7 @@ install(FILES ${GLEW_DIR}/glew.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig ) -if(WIN32 AND (NOT MSVC_VERSION LESS 1600) AND (NOT CMAKE_VERSION VERSION_LESS "3.1")) +if(WIN32 AND MSVC AND (NOT MSVC_VERSION LESS 1600) AND (NOT CMAKE_VERSION VERSION_LESS "3.1")) install( FILES $ DESTINATION ${CMAKE_INSTALL_LIBDIR}