Use cmake_policy only for cmake 3.x.y
This commit is contained in:
parent
899d6fe53f
commit
56eaa5e880
1 changed files with 2 additions and 0 deletions
|
@ -1,7 +1,9 @@
|
|||
cmake_minimum_required(VERSION 2.6)
|
||||
project(libtransport)
|
||||
|
||||
if(${CMAKE_MAJOR_VERSION} GREATER 2)
|
||||
cmake_policy(SET CMP0037 OLD)
|
||||
endif()
|
||||
|
||||
message(STATUS "Variables to override default places where to find libraries:")
|
||||
message(STATUS "|- cppunit : -DCPPUNIT_INCLUDE_DIR, -DCPPUNIT_LIBRARY")
|
||||
|
|
Loading…
Add table
Reference in a new issue