Skip to content

Commit

Permalink
Only attempt to install .pdb files on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Feb 8, 2021
1 parent 7f87c55 commit 4ada0d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion native/obs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ set_target_properties(
AUTOMOC ON
)
install(TARGETS obs-streaming-remote)
install(FILES "$<TARGET_PDB_FILE:obs-streaming-remote>" TYPE BIN OPTIONAL)
if(WIN32)
install(FILES "$<TARGET_PDB_FILE:obs-streaming-remote>" TYPE BIN OPTIONAL)
endif()

if(APPLE)
set_target_properties(obs-streaming-remote PROPERTIES PREFIX "" SUFFIX ".so")
Expand Down
4 changes: 3 additions & 1 deletion native/xsplit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ set_target_properties(
)

install(TARGETS xsplit-streaming-remote)
install(FILES "$<TARGET_PDB_FILE:xsplit-streaming-remote>" TYPE BIN OPTIONAL)
if(WIN32)
install(FILES "$<TARGET_PDB_FILE:xsplit-streaming-remote>" TYPE BIN OPTIONAL)
endif()

target_link_libraries(
xsplit-streaming-remote
Expand Down

0 comments on commit 4ada0d8

Please sign in to comment.