Fix two left CMake annoyances
Closes
Policy 48 is about the new VERSION setting of project(), which will get
confused when including liblcf in Player (not resetting the variables).
We cannot enforce C++11 for liblcf from the configuration file, as we
use an imported target there.
MODIFY
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 3.7)
+cmake_policy(SET CMP0048 NEW)
project(liblcf VERSION 0.5.3 LANGUAGES CXX)

MODIFY
builds/liblcf-config.cmake.in
builds/liblcf-config.cmake.in
@@ -85,7 +85,6 @@ if(LIBLCF_FOUND)
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
INTERFACE_INCLUDE_DIRECTORIES "${LIBLCF_INCLUDE_DIRS}"
INTERFACE_LINK_LIBRARIES "${LIBLCF_LINK_LIBRARIES}")
- target_compile_features(liblcf::liblcf PUBLIC cxx_std_11)
if(LIBLCF_LIBRARY_RELEASE)
set_property(TARGET liblcf::liblcf APPEND PROPERTY

Fix two left CMake annoyances
Closes #215.

Policy 48 is about the new VERSION setting of project(), which will get
confused when including liblcf in Player (not resetting the variables).

We cannot enforce C++11 for liblcf from the configuration file, as we
use an imported target there.