Fix DrogonConfig.cmake for Windows (#403)

This commit is contained in:
An Tao 2020-03-24 22:08:12 +08:00 committed by GitHub
parent 1969effd29
commit c46c7f3570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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)