Skip to content

Commit

Permalink
Fix Visual Studio build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwiboo committed Oct 3, 2015
1 parent 7a78893 commit be56ce1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ endif(NOT TARGET_WIN32)
get_property(PLEX_MODULE_SRCS GLOBAL PROPERTY SRCS_LIST)
set(PLEX_ALL_SRCS ${PLEX_MODULE_SRCS} ${plex_SRCS} ${Headers})

ADD_MSVC_PRECOMPILED_HEADER("pch_plex.h" "pch_plex.cpp" PLEX_ALL_SRCS)
ADD_MSVC_PRECOMPILED_HEADER("pch_plex.h" "./pch_plex.cpp" PLEX_ALL_SRCS)

# build all plex related source files
add_library(PlexMain OBJECT ${PLEX_ALL_SRCS})
Expand Down
3 changes: 3 additions & 0 deletions plex/Update-Installer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ if (WIN32)
set(CMAKE_CXX_FLAGS_RELEASE "/MT /Zi /O2 /Ob2 /D NDEBUG")
set(CMAKE_C_FLAGS_RELEASE "/MT /Zi /O2 /Ob2 /D NDEBUG")

set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MT /Zi /O2 /Ob2 /D NDEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "/MT /Zi /O2 /Ob2 /D NDEBUG")

remove_definitions(-DUNICODE -D_UNICODE)
else()
# optimize for reduced code size
Expand Down
2 changes: 1 addition & 1 deletion plex/scripts/create_symstore.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

set SourceRoot=%1
set SymStoreRoot=symbols
rd /s /- "%SymStoreRoot%"
rd /s /q "%SymStoreRoot%"
md "%SymStoreRoot%"

symstore add /s "%SymStoreRoot%" /f "plex\Plex Home Theater.exe" /t PHT /compress
Expand Down

0 comments on commit be56ce1

Please sign in to comment.