Author: brane
Date: Thu May 29 22:21:47 2025
New Revision: 1925962

URL: http://svn.apache.org/viewvc?rev=1925962&view=rev
Log:
On Windows, CMake doesn't generate .pdb files for release builds.

* CMakeLists.txt: Check the build type before installing the .pdb.

Modified:
    serf/trunk/CMakeLists.txt

Modified: serf/trunk/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/serf/trunk/CMakeLists.txt?rev=1925962&r1=1925961&r2=1925962&view=diff
==============================================================================
--- serf/trunk/CMakeLists.txt (original)
+++ serf/trunk/CMakeLists.txt Thu May 29 22:21:47 2025
@@ -351,7 +351,10 @@ if(NOT SKIP_SHARED)
   set(SERF_TARGETS "serf_shared")
 
   if(SERF_WINDOWS)
-    install(FILES $<TARGET_PDB_FILE:serf_shared> DESTINATION "bin")
+    string(TOLOWER "${CMAKE_BUILD_TYPE}" config)
+    if(NOT "${config}" STREQUAL "release")
+      install(FILES $<TARGET_PDB_FILE:serf_shared> DESTINATION "bin")
+    endif()
   endif()
 endif()
 


Reply via email to