Build LOOT API with debug info on Windows and package pdb

This commit is contained in:
Oliver Hamlet
2018-05-02 17:18:39 +01:00
parent 5956e6080b
commit c4fd29aaec
2 changed files with 11 additions and 3 deletions
+9 -1
View File
@@ -331,8 +331,9 @@ IF (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
ENDIF ()
IF (MSVC)
# Set /bigobj to allow building Debug tests
# Set /bigobj to allow building Debug and RelWithDebInfo tests
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /bigobj")
# Update compiler flags.
IF (MSVC_STATIC_RUNTIME)
@@ -421,6 +422,13 @@ add_custom_command(TARGET loot_api_tests POST_BUILD
install(TARGETS loot_api
DESTINATION ".")
IF (MSVC)
install(FILES $<TARGET_PDB_FILE:loot_api>
DESTINATION .
OPTIONAL
CONFIGURATIONS RelWithDebInfo)
ENDIF ()
install(DIRECTORY "${CMAKE_SOURCE_DIR}/include"
DESTINATION ".")
+2 -2
View File
@@ -2,7 +2,7 @@ os: Visual Studio 2015
version: "{build}-{branch}"
configuration: Release
configuration: RelWithDebInfo
platform:
- Win32
@@ -55,7 +55,7 @@ after_test:
- C:\Python27\Scripts\sphinx-build -b html docs build\docs\html
- ps: $env:GIT_DESCRIBE = ((git describe --tags --long --always --abbrev=7) | Out-String) -replace "`n|`r", ""
- cd build
- cpack
- cpack -C %CONFIGURATION%
artifacts:
- path: build\package\loot_api-$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH)-win$(ADDRESS_MODEL).7z