JeffersonLab / analyzer

HallA C++ Analyzer
BSD 3-Clause "New" or "Revised" License
7 stars 54 forks source link

Cmake build #165

Closed whit2333 closed 6 years ago

whit2333 commented 6 years ago
  Could NOT find EVIO (missing: EVIO_LIBRARY EVIO_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindEVIO.cmake:48 (find_package_handle_standard_args)
  hana_decode/CMakeLists.txt:15 (find_package)

Adding CONFIG in hana_decode/CMakeLists.txt:

find_package(EVIO REQUIRED CONFIG)

fixes it.

hansenjo commented 6 years ago

Commit d9d8001 adds a configuration option EVIO_HAS_CMAKE_CONFIG (default OFF) which, when enabled, runs find_package(EVIO) with the CONFIG option. Let me know if that works for you.

whit2333 commented 6 years ago

Here without any manual intervention: https://github.com/JeffersonLab/analyzer/pull/167

hansenjo commented 6 years ago

Merged #167 in commit 83ee64e