diff --git a/include/gz/common/EnumIface.hh b/include/gz/common/EnumIface.hh index 4f821467..79a21b89 100644 --- a/include/gz/common/EnumIface.hh +++ b/include/gz/common/EnumIface.hh @@ -24,6 +24,7 @@ #include #include #include +#include namespace ignition { @@ -146,6 +147,7 @@ namespace ignition _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") #endif + IGN_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION template class EnumIterator : std::iterator @@ -223,6 +225,7 @@ namespace ignition /// member value ever used. private: Enum c; }; + IGN_UTILS_WARN_RESUME__DEPRECATED_DECLARATION #if defined __APPLE__ && defined __clang__ _Pragma("clang diagnostic pop") #endif diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 90e333f1..accabd1f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,7 +10,11 @@ ign_create_core_library( # Link the libraries that we always need target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} - PRIVATE ${DL_TARGET}) + PRIVATE + ${DL_TARGET} + PUBLIC + ignition-utils${IGN_UTILS_VER}::ignition-utils${IGN_UTILS_VER} +) # This is required by the WorkerPool::WaitForResults(const Time &_timeout) # TODO(anyone): IGN_DEPRECATED(4). Remove this part when the method is removed