Added CMAKE_PLATFORM_INFO_DIR definition for CMake <2.8.10 backward compatibility

This commit is contained in:
Snaipe 2015-10-07 17:57:53 +02:00
parent e85bfcef08
commit baf93fb2f2

View file

@ -2,6 +2,11 @@
# Redistribution and use of this file is allowed according to the terms of the MIT license.
# For details see the LICENSE file distributed with Criterion.
# CMake <2.8.10 backward compat
if(NOT CMAKE_PLATFORM_INFO_DIR)
set(CMAKE_PLATFORM_INFO_DIR ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY})
endif(NOT CMAKE_PLATFORM_INFO_DIR)
set(CMAKE_ObjectiveC_COMPILER_ID ${CMAKE_C_COMPILER_ID})
set(CMAKE_ObjectiveC_COMPILER ${CMAKE_C_COMPILER})