cmake: Don't install visualboyadvance-m twice on WIN32.

This commit is contained in:
orbea 2019-10-08 05:57:55 -07:00 committed by Rafael Kitover
parent 518c147281
commit 4e9882f24d
1 changed files with 0 additions and 7 deletions

View File

@ -751,7 +751,6 @@ add_executable(
${CM_STUFF}
)
target_link_libraries(
visualboyadvance-m
${VBAMCORE_LIBS}
@ -805,10 +804,6 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif()
endif()
if(WIN32)
install(PROGRAMS ${PROJECT_BINARY_DIR}/visualboyadvance-m${CMAKE_EXECUTABLE_SUFFIX} DESTINATION ${CMAKE_BINARY_DIR})
endif()
if(NOT WIN32 AND NOT APPLE)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/wxvbam.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
endif()
@ -837,8 +832,6 @@ if(APPLE)
endif()
endif()
set(WX_EXE_NAME visualboyadvance-m-wx${CMAKE_EXECUTABLE_SUFFIX})
install(
TARGETS visualboyadvance-m
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}