diff options
Diffstat (limited to 'cmake/PkgConfigWithFallback.cmake')
| -rw-r--r-- | cmake/PkgConfigWithFallback.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/PkgConfigWithFallback.cmake b/cmake/PkgConfigWithFallback.cmake index 9124bb35..40a3eb97 100644 --- a/cmake/PkgConfigWithFallback.cmake +++ b/cmake/PkgConfigWithFallback.cmake @@ -15,9 +15,15 @@ function(find_pkg_config_with_fallback name) # Try to find real file name of libraries foreach(lib ${${name}_PKG_CONFIG_LIBRARIES}) + if (${lib} STREQUAL "atomic") + set(${name}_${lib}_LIBRARY ${lib}) + mark_as_advanced(${name}_${lib}_LIBRARY) + continue() + endif() find_library(${name}_${lib}_LIBRARY ${lib} HINTS ${${name}_PKG_CONFIG_LIBRARY_DIRS}) mark_as_advanced(${name}_${lib}_LIBRARY) if(NOT ${name}_${lib}_LIBRARY) + message(STATUS "Required library for package " ${name} " not found: " ${lib}) unset(${name}_FOUND) endif(NOT ${name}_${lib}_LIBRARY) endforeach(lib) |
