ECP-VeloC / AXL

Asynchronous Transfer Library
MIT License
2 stars 8 forks source link

Failed build on system w/out BB API after PR-23 #25

Closed CamStan closed 5 years ago

CamStan commented 5 years ago

After #23, when building on a system w/out IBM BB API I get an error:

-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
CMake Error at /usr/tce/packages/cmake/cmake-3.9.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find BBAPI (missing: BBAPI_LIBRARIES BBAPI_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/tce/packages/cmake/cmake-3.9.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindBBAPI.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:64 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!

I'm still new to cmake, but do we need something like IF(BBAPI_FOUND) and ENDIF(BBAPI_FOUND) around these lines?

https://github.com/ECP-VeloC/AXL/blob/f3f79003335b428c7ae603bd7780d0bc9cf99ccd/CMakeLists.txt#L65-L68