Commit e6dd7e22 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Merge branch 'fix/cmake-3.0.2-warning' into 'master'

Fix CMake 3.0.2 warning

This MR fixes a CMP0022 policy warning that appears in CMake 3.0.2, arising from a difference in the `INTERFACE_LINK_LIBRARIES` and `LINK_INTERFACE_LIBRARIES_DEBUG` properties that happens when debug/optimized versions of a library are specified in `TARGET_LINK_LIBRARIES`.

See merge request !415
parents eab277eb de24b990
......@@ -22,7 +22,13 @@ ENABLE_TESTING()
# Use the CMake 2.4 policy for CMake 2.6
IF(COMMAND cmake_policy)
cmake_policy(SET CMP0003 OLD)
CMAKE_POLICY(SET CMP0003 OLD)
# Silence warnings when using generator expressions in
# TARGET_LINK_LIBRARIES.
IF(POLICY CMP0022)
CMAKE_POLICY(SET CMP0022 NEW)
ENDIF()
ENDIF(COMMAND cmake_policy)
# Find the modules included with Nektar
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment