Skip to content

CMake policy CMP0074 #77

@kostya416

Description

@kostya416

I am using set (PostgreSQL_ROOT "xxxxx") in my CMake file and getting following warning / error from CMake:

CMake Warning (dev) at 3rd-party/taopq/CMakeLists.txt:12 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.

it can be fixed by adding following lines to CMakeLists.txt for taopq before find_package call:

if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions