Skip to content

Commit

Permalink
Removed the need to write md5 conf to the source tree
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyyrylainen committed Mar 20, 2024
1 parent dd5ab9b commit 19fa1fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
/build/
/build-podman/
/install/
/third_party/MD5-conf/conf.h
6 changes: 3 additions & 3 deletions third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ else()
set(MD5_BIG_ENDIAN 0)
endif()

configure_file("MD5-conf/conf.h.in" "${CMAKE_CURRENT_SOURCE_DIR}/MD5-conf/conf.h")
configure_file("MD5-conf/conf.h.in" "${PROJECT_BINARY_DIR}/MD5-conf/conf.h")

add_library(md5 STATIC MD5/src/md5.h MD5/src/md5.cpp MD5/src/md5_loc.h MD5-conf/conf.h)
target_include_directories(md5 PRIVATE MD5-conf)
add_library(md5 STATIC MD5/src/md5.h MD5/src/md5.cpp MD5/src/md5_loc.h)
target_include_directories(md5 PRIVATE "${PROJECT_BINARY_DIR}/MD5-conf")
target_include_directories(md5 INTERFACE MD5/src)

0 comments on commit 19fa1fb

Please sign in to comment.