Move linux file to linux-various to avoid including it in win builds.

Changed the condition around for sake of ease of reading.
This commit is contained in:
rz5 2016-02-28 13:01:02 +00:00
parent 2d4e2fb8cb
commit 0b3542a573
2 changed files with 8 additions and 1 deletions

View File

@ -86,6 +86,7 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/plugins")
endif() endif()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Install some files to ease package creation # Install some files to ease package creation
if(PACKAGE_MODE) if(PACKAGE_MODE)
if(NOT DISABLE_CHEATS_ZIP) if(NOT DISABLE_CHEATS_ZIP)
@ -107,6 +108,12 @@ if(PACKAGE_MODE)
INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/docs/PCSX2_Readme.pdf" DESTINATION "${DOC_DIR}") INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/docs/PCSX2_Readme.pdf" DESTINATION "${DOC_DIR}")
INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/docs/PCSX2.1" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1/") INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/docs/PCSX2.1" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1/")
if(NOT DISABLE_PCSX2_WRAPPER) if(NOT DISABLE_PCSX2_WRAPPER)
INSTALL(FILES "${CMAKE_SOURCE_DIR}/bin/PCSX2-linux.sh" DESTINATION "${BIN_DIR}") INSTALL(FILES "${CMAKE_SOURCE_DIR}/linux_various/PCSX2-linux.sh" DESTINATION "${BIN_DIR}")
endif()
else()
if(NOT DISABLE_PCSX2_WRAPPER)
# special case to avoid having linux files in windows
INSTALL(FILES "${CMAKE_SOURCE_DIR}/linux_various/PCSX2-linux.sh" DESTINATION "${CMAKE_SOURCE_DIR}/bin")
endif() endif()
endif() endif()