Skip to content

Commit

Permalink
Libfaketime cmake version support. (#5049)
Browse files Browse the repository at this point in the history
`libfaketime` CMakeLists.txt doesn't support older versions of CMake.

[sc-49009]

---
TYPE: BUILD
DESC: Backwards compatibility with older CMake versions for libfaketime.
  • Loading branch information
dudoslav authored Jun 6, 2024
1 parent 0fafe92 commit 804d7fb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions ports/libfaketime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.20)

project(faketime VERSION 0.9.10)

Expand All @@ -21,18 +21,11 @@ target_include_directories(${PROJECT_NAME}

file(GLOB_RECURSE PUBLIC_HEADERS "src/*.h")

target_sources(
${PROJECT_NAME}
PUBLIC
FILE_SET HEADERS
BASE_DIRS src
FILES ${PUBLIC_HEADERS}
)
install(FILES ${PUBLIC_HEADERS} DESTINATION include)

install(TARGETS ${PROJECT_NAME}
FILE_SET HEADERS
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
)

0 comments on commit 804d7fb

Please sign in to comment.