Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Download fmt as zip file, use gnu install dirs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryouze committed Nov 10, 2024
1 parent 98e1900 commit aa486ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE ${PROJECT_NAME}-lib)

# Add install target
include(GNUInstallDirs)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

# Add tests if enabled
Expand Down
6 changes: 2 additions & 4 deletions cmake/External.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ function(fetch_and_link_external_dependencies target)
# SYSTEM is used to prevent applying compile flags to the dependencies
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG 11.0.2
GIT_PROGRESS TRUE
GIT_SHALLOW TRUE
URL https://github.com/fmtlib/fmt/releases/download/11.0.2/fmt-11.0.2.zip
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
EXCLUDE_FROM_ALL
SYSTEM
)
Expand Down

0 comments on commit aa486ed

Please sign in to comment.