Skip to content

Commit

Permalink
Fix issue installing empty database directory
Browse files Browse the repository at this point in the history
The CMake code to install the empty database directory doesn't appear to
do anything.  Further, it is causing build issues for some users.

Instead of running code to make the directory, it appears we can just
install a directory directly.

Fixes: #1142
  • Loading branch information
micahsnyder committed Jan 16, 2024
1 parent c48146a commit 7853f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freshclam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ else()
endif()

# Install an empty database directory
INSTALL(CODE "FILE(MAKE_DIRECTORY \${ENV}\${CMAKE_INSTALL_PREFIX}/\${DATABASE_DIRECTORY})" COMPONENT programs)
INSTALL(DIRECTORY DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${DATABASE_DIRECTORY} COMPONENT programs)

# Now we rename freshclam-bin executable to freshclam using target properties
set_target_properties( freshclam-bin
Expand Down

0 comments on commit 7853f85

Please sign in to comment.