mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Build: Replace explicit use of mv(1) in CMake file with file(RENAME).
Also fix code style: `else ()` -> `else()`.
This commit is contained in:
parent
7980268b7b
commit
5df714cd22
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ foreach(CMD_SRC ${CMD_SOURCES})
|
|||
add_executable("${CMD_NAME}-bin" ${CMD_SRC})
|
||||
target_link_libraries("${CMD_NAME}-bin" LibCore)
|
||||
install(TARGETS "${CMD_NAME}-bin" RUNTIME DESTINATION bin)
|
||||
install(CODE "execute_process(COMMAND mv ${CMD_NAME}-bin ${CMD_NAME} WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)")
|
||||
else ()
|
||||
install(CODE "file(RENAME ${CMAKE_INSTALL_PREFIX}/bin/${CMD_NAME}-bin ${CMAKE_INSTALL_PREFIX}/bin/${CMD_NAME})")
|
||||
else()
|
||||
add_executable(${CMD_NAME} ${CMD_SRC})
|
||||
target_link_libraries(${CMD_NAME} LibCore)
|
||||
install(TARGETS ${CMD_NAME} RUNTIME DESTINATION bin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue