From f4ee7e90d8a4f917ccdf19b732377f37579dab53 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 16 Oct 2011 22:50:29 +0200 Subject: Linux cmake fixes diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c4d1b7f..d3abff2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,7 +1,9 @@ cmake_minimum_required(VERSION 2.8) -# Explicitly use new include policy to avoid globally shadowing included modules -# http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0017 -cmake_policy(SET CMP0017 NEW) +if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" GREATER 2.8.3) + # Explicitly use new include policy to avoid globally shadowing included modules + # http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0017 + cmake_policy(SET CMP0017 NEW) +endif() project(tests) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") @@ -191,18 +193,6 @@ add_executable(echotest echotest.cc ${CORE_SOURCES}) target_link_libraries(echotest ${QT_LIBRARIES} ${OPENGL_LIBRARY}) # -# echotest -# -add_executable(echotest echotest.cc ${CORE_SOURCES}) -target_link_libraries(echotest ${QT_LIBRARIES} ${OPENGL_LIBRARY}) - -# -# echotest -# -add_executable(echotest echotest.cc ${CORE_SOURCES}) -target_link_libraries(echotest ${QT_LIBRARIES} ${OPENGL_LIBRARY}) - -# # Offscreen OpenGL context source code # if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") -- cgit v0.10.1