← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/remove_duplicate_code into lp:widelands

 

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.


References