From 16444fbc3e9cafd340123aa4b8ba4f680eb3a4a3 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 14 Jun 2016 12:30:28 +0200 Subject: [PATCH] Install pdb file on Windows when building in RelWithDebInfo. --- coreapi/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index ea97ad5f3..b2653469e 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -238,8 +238,8 @@ if(ENABLE_SHARED) add_dependencies(linphone linphonecore-jni-header) endif() if(MSVC) - if(CMAKE_BUILD_TYPE STREQUAL "Debug") - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/linphone.pdb + if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/linphone.pdb DESTINATION ${CMAKE_INSTALL_BINDIR} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE )