Code review comment for lp:~widelands-dev/widelands/cmakepolicy

kaputtnik (franku) wrote :

Compiling is fine here with the latest change: No Warning and no compile errors.

I do not really understand that stuff, but can't we just add a switch like that (instead of setting the linker flags):

if(${CMAKE_VERSION} VERSION_GREATER "3.11")
    cmake_policy(SET CMP0072 OLD)
endif()

I tested this and it works for me (deleted the build directory and compiled again) ... Has to be commented well, though.

« Back to merge proposal