Skip to content

Commit

Permalink
build: symbol OPTIONAL
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 8, 2024
1 parent 526cf89 commit 99adcdd
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/MaaAdbControlUnit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ install(
)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaAdbControlUnit> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:MaaAdbControlUnit> DESTINATION symbol OPTIONAL)
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_adb_control_unit_src})
2 changes: 1 addition & 1 deletion source/MaaDbgControlUnit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install(
)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaDbgControlUnit> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:MaaDbgControlUnit> DESTINATION symbol OPTIONAL)
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_dbg_control_unit_src})
2 changes: 1 addition & 1 deletion source/MaaFramework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ install(
ARCHIVE DESTINATION lib)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaFramework> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:MaaFramework> DESTINATION symbol OPTIONAL)
endif()

install(DIRECTORY "${MAA_PUBLIC_INC}/MaaFramework" DESTINATION "include")
Expand Down
2 changes: 1 addition & 1 deletion source/MaaProjectInterface/CLI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ install(TARGETS MaaPiCli
)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaPiCli> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:MaaPiCli> DESTINATION symbol OPTIONAL)
endif()
2 changes: 1 addition & 1 deletion source/MaaToolkit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ install(
ARCHIVE DESTINATION lib)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaToolkit> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:MaaToolkit> DESTINATION symbol OPTIONAL)
endif()

install(DIRECTORY "${MAA_PUBLIC_INC}/MaaToolkit" DESTINATION "include")
Expand Down
2 changes: 1 addition & 1 deletion source/MaaUtils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ install(
)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaUtils> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:MaaUtils> DESTINATION symbol OPTIONAL)
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_utils_src})
2 changes: 1 addition & 1 deletion source/MaaWin32ControlUnit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ install(
)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaWin32ControlUnit> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:MaaWin32ControlUnit> DESTINATION symbol OPTIONAL)
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${maa_win32_control_unit_src})
2 changes: 1 addition & 1 deletion source/binding/NodeJS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ install(
ARCHIVE DESTINATION lib)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:MaaNode> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:MaaNode> DESTINATION symbol OPTIONAL)
endif()

# if(WIN32) add_custom_command( TARGET MaaNode POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${MaaDlls}
Expand Down
2 changes: 1 addition & 1 deletion test/dlopen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ set_target_properties(DlopenTesting PROPERTIES FOLDER Testing)
install(TARGETS DlopenTesting RUNTIME DESTINATION bin)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:DlopenTesting> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:DlopenTesting> DESTINATION symbol OPTIONAL)
endif()
2 changes: 1 addition & 1 deletion test/pipeline/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ set_target_properties(PipelineTesting PROPERTIES FOLDER Testing)
install(TARGETS PipelineTesting RUNTIME DESTINATION bin)

if(WIN32)
install(FILES $<TARGET_PDB_FILE:PipelineTesting> DESTINATION symbol)
install(FILES $<TARGET_PDB_FILE:PipelineTesting> DESTINATION symbol OPTIONAL)
endif()

0 comments on commit 99adcdd

Please sign in to comment.