Skip to content
Snippets Groups Projects
Commit 9a6b7c3f authored by Matt McCormick's avatar Matt McCormick
Browse files

cmake: Set CMP0056 to NEW

When Android is compiled with "-static" in CMAKE_EXE_LINKER_FLAGS, only the
shared version of libc has utimensat.  By setting CMP0056 to NEW,
CMAKE_EXE_LINKER_FLAGS is passed to the try_compile in KWSYS_PLATFORM_CXX_TEST
so KWSYS_CXX_HAS_UTIMENSAT gets the correct result.

Change-Id: Ia5ff7abaafb92e043927b57c5f2858259195235f
parent b1d560a0
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR)
IF(POLICY CMP0025)
CMAKE_POLICY(SET CMP0025 NEW)
ENDIF()
IF(POLICY CMP0056)
CMAKE_POLICY(SET CMP0056 NEW)
ENDIF()
#-----------------------------------------------------------------------------
# If a namespace is not specified, use "kwsys" and enable testing.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment