diff --git a/CMakeLists.txt b/CMakeLists.txt index 09296e0748082c89674cb0259bc3017d916b6367..5b0650037675026b1f95126e9ecf1447855aeafc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,9 @@ if (hasParent) set (CorsikaData_VERSION "1.1.0" PARENT_SCOPE) endif (hasParent) -find_package (BZip2 REQUIRED) +if (NOT TAGET CONAN_PKG::bzip2) + message (FATAL_ERROR "Please configure with conan bzip2 package") +endif (NOT TAGET CONAN_PKG::bzip2) enable_testing () if (${CMAKE_VERSION} VERSION_LESS "3.12.0") diff --git a/readLib/CMakeLists.txt b/readLib/CMakeLists.txt index 5b3e8479e159072bafbbaf859c4288ede78e8256..7fd299a2597249be2b6d1e8149a9ccf1f0704b54 100644 --- a/readLib/CMakeLists.txt +++ b/readLib/CMakeLists.txt @@ -4,7 +4,7 @@ set ( ) add_library (CorsikaData STATIC ${files}) -target_link_libraries (CorsikaData PUBLIC BZip2::BZip2) +target_link_libraries (CorsikaData PUBLIC CONAN_PKG::bzip2) set_target_properties ( CorsikaData