The cmake warning is caused by Tino's "Quickfix" at revision 8853 in trunk.

These lines in BzrRevision.cmake trigger it the policy:

string(REGEX REPLACE "\n|\r$" "" WL_VERSION "${WL_VERSION}")
string(STRIP WL_VERSION "${WL_VERSION}")
file (WRITE ${CMAKE_CURRENT_BINARY_DIR}/VERSION "${WL_VERSION}")

See here:

https://cmake.org/cmake/help/v3.10/policy/CMP0054.html

adding this line to CMakeLists.txt solved the error:

cmake_policy(SET CMP0054 NEW)
-- 
https://code.launchpad.net/~widelands-dev/widelands/remove_duplicate_code/+merge/355586
Your team Widelands Developers is subscribed to branch 
lp:~widelands-dev/widelands/remove_duplicate_code.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to