Skip to content

Commit

Permalink
[INFRA] Handle CMP0135
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Oct 18, 2023
1 parent e77a508 commit 0c9e1dc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
cmake_minimum_required (VERSION 3.10...3.22)
project (hibf_util CXX)

# https://cmake.org/cmake/help/latest/policy/CMP0135.html
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
cmake_policy (SET CMP0135 NEW)
endif ()

# Dependency: seqan::hibf
get_filename_component (HIBF_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
add_subdirectory ("${HIBF_ROOT_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/hibf_lib")
Expand All @@ -19,5 +24,5 @@ FetchContent_Populate (sharg)
list (APPEND CMAKE_PREFIX_PATH "${sharg_SOURCE_DIR}/build_system")
find_package (sharg 1.0 REQUIRED)

add_executable (fpr_quality fpr_quality.cpp)
target_link_libraries (fpr_quality seqan::hibf sharg::sharg)
add_executable (fpr_correction_check fpr_correction_check.cpp)
target_link_libraries (fpr_correction_check seqan::hibf sharg::sharg)

0 comments on commit 0c9e1dc

Please sign in to comment.