Skip to content

Commit 47d4508

Browse files
committed
fix maybe?
1 parent 28f7e3a commit 47d4508

1 file changed

Lines changed: 25 additions & 27 deletions

File tree

CMakeLists.txt

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -40,46 +40,44 @@ endif()
4040
add_custom_target(all_tools
4141
DEPENDS BCD1Creator CTRKViewer DEV7Launcher OBCViewer OBJDumper ModelPathDumper LoaderMDO)
4242

43-
# Install commands
43+
# Install commands (Linux only)
4444
option(ENABLE_INSTALL "Enable installation of the project" ON)
4545

46-
if(ENABLE_INSTALL)
46+
if(ENABLE_INSTALL AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
4747
install(TARGETS BCD1Creator CTRKViewer DEV7Launcher OBCViewer OBJDumper ModelPathDumper LoaderMDO
4848
RUNTIME DESTINATION bin)
4949

50-
# Linux-only: Create symlinks for all tools
51-
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
52-
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
53-
${CMAKE_INSTALL_PREFIX}/bin/BCD1Creator
54-
${CMAKE_INSTALL_PREFIX}/bin/bcd1creator)")
50+
# Create symlinks for all tools
51+
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
52+
${CMAKE_INSTALL_PREFIX}/bin/BCD1Creator
53+
${CMAKE_INSTALL_PREFIX}/bin/bcd1creator)")
5554

56-
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
57-
${CMAKE_INSTALL_PREFIX}/bin/CTRKViewer
58-
${CMAKE_INSTALL_PREFIX}/bin/ctrkviewer)")
55+
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
56+
${CMAKE_INSTALL_PREFIX}/bin/CTRKViewer
57+
${CMAKE_INSTALL_PREFIX}/bin/ctrkviewer)")
5958

60-
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
61-
${CMAKE_INSTALL_PREFIX}/bin/DEV7Launcher
62-
${CMAKE_INSTALL_PREFIX}/bin/dev7launcher)")
59+
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
60+
${CMAKE_INSTALL_PREFIX}/bin/DEV7Launcher
61+
${CMAKE_INSTALL_PREFIX}/bin/dev7launcher)")
6362

64-
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
65-
${CMAKE_INSTALL_PREFIX}/bin/OBCViewer
66-
${CMAKE_INSTALL_PREFIX}/bin/obcviewer)")
63+
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
64+
${CMAKE_INSTALL_PREFIX}/bin/OBCViewer
65+
${CMAKE_INSTALL_PREFIX}/bin/obcviewer)")
6766

68-
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
69-
${CMAKE_INSTALL_PREFIX}/bin/OBJDumper
70-
${CMAKE_INSTALL_PREFIX}/bin/objdumper)")
67+
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
68+
${CMAKE_INSTALL_PREFIX}/bin/OBJDumper
69+
${CMAKE_INSTALL_PREFIX}/bin/objdumper)")
7170

72-
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
73-
${CMAKE_INSTALL_PREFIX}/bin/ModelPathDumper
74-
${CMAKE_INSTALL_PREFIX}/bin/modelpathdumper)")
71+
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
72+
${CMAKE_INSTALL_PREFIX}/bin/ModelPathDumper
73+
${CMAKE_INSTALL_PREFIX}/bin/modelpathdumper)")
7574

76-
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
77-
${CMAKE_INSTALL_PREFIX}/bin/LoaderMDO
78-
${CMAKE_INSTALL_PREFIX}/bin/loadermdo)")
79-
endif()
75+
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
76+
${CMAKE_INSTALL_PREFIX}/bin/LoaderMDO
77+
${CMAKE_INSTALL_PREFIX}/bin/loadermdo)")
8078
endif()
8179

82-
# Linux-only: Uninstall command
80+
# Uninstall command (Linux only)
8381
if(NOT TARGET uninstall AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
8482
add_custom_target(uninstall
8583
COMMAND ${CMAKE_COMMAND} -E remove "${CMAKE_INSTALL_PREFIX}/bin/BCD1Creator"

0 commit comments

Comments
 (0)