diff --git a/cmake/templates/DrogonConfig.cmake.in b/cmake/templates/DrogonConfig.cmake.in index 92dbf787..907d37fe 100644 --- a/cmake/templates/DrogonConfig.cmake.in +++ b/cmake/templates/DrogonConfig.cmake.in @@ -14,7 +14,9 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) find_dependency(Jsoncpp REQUIRED) find_dependency(Trantor REQUIRED) +if(NOT WIN32) find_dependency(UUID REQUIRED) +endif(NOT WIN32) find_dependency(ZLIB REQUIRED) if(@pg_FOUND@) find_dependency(pg) diff --git a/cmake_modules/Findpg.cmake b/cmake_modules/Findpg.cmake index 88a6eb73..53037f2b 100644 --- a/cmake_modules/Findpg.cmake +++ b/cmake_modules/Findpg.cmake @@ -19,5 +19,9 @@ if(PostgreSQL_FOUND) INTERFACE_LINK_LIBRARIES "${PostgreSQL_LIBRARIES}") mark_as_advanced(PG_INCLUDE_DIRS PG_LIBRARIES) - set(pg_FOUND TRUE) -endif() +endif(PostgreSQL_FOUND) +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(pg + DEFAULT_MSG + PG_LIBRARIES + PG_INCLUDE_DIRS)