https://bugzilla.redhat.com/show_bug.cgi?id=2403985



--- Comment #9 from Ben Beasley <[email protected]> ---
Now that I’ve packaged utest, you should be able to run the tests. This project
wants to download the header at build time,

  # 
  # Download and unpack utest at configure time
  #
  FetchContent_Populate(
      utest
      GIT_REPOSITORY                    https://github.com/sheredom/utest.h.git
      GIT_TAG           master
      GIT_PROGRESS FALSE
  )

  set(utest_include_dir ${utest_SOURCE_DIR})

  […]

  target_include_directories(mcut_tests PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include ${MCUT_INCLUDE_DIR} ${utest_include_dir}
${mio_include_dir})

but it is always used as #include "utest.h", so a small build-system patch to
remove the call to FetchContent_Populate() and the use of utest_include_dir,
along with "BuildRequires:  utest-static" (due to guidelines on header-only
libraries) in the spec file, would be sufficient to get this working. (There
might be some hackery you can do with options for FetchContent and putting
files in particular places without patching CMakeLists.txt, but the suggested
small patch is probably much easier.)


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2403985

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202403985%23c9

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to