Skip to content

Commit

Permalink
chore: Linux CLI bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Oct 17, 2024
1 parent 97d43b2 commit 38802e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ if (WINDRES)

add_custom_target(resource-cli DEPENDS ${CMAKE_BINARY_DIR}/version-cli.o)
add_dependencies(CLI resource-cli)

target_link_libraries(CLI PRIVATE ${CMAKE_BINARY_DIR}/version-cli.o)
endif()

install(TARGETS CLI DESTINATION /usr/local/bin)
Expand All @@ -62,5 +64,5 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} Wl,--gc-sections -s")
endif()

target_link_libraries(CLI PRIVATE CLI11::CLI11 CURL::libcurl ${CMAKE_BINARY_DIR}/version-cli.o)
target_link_libraries(CLI PRIVATE CLI11::CLI11 CURL::libcurl)
set_target_properties(CLI PROPERTIES OUTPUT_NAME "millennium")

0 comments on commit 38802e8

Please sign in to comment.