From Mattias Helsing, "I finally got to fix the cmake Modules that have duplicates in later

version of cmake. See attached submission. I have tested the ones that
I compile myself (GDAL, Freetype, ZLIB) on ubuntu 12.04 with
cmake-2.8.7."
This commit is contained in:
Robert Osfield
2014-04-29 12:19:21 +00:00
parent ecd26f9f5b
commit fa6f5219bf
7 changed files with 59 additions and 0 deletions

View File

@@ -17,6 +17,16 @@
#
# Created by Eric Wing.
# prefer FindOpenThreads from cmake distribution
if(EXISTS ${CMAKE_ROOT}/Modules/FindOpenThreads.cmake)
include(${CMAKE_ROOT}/Modules/FindOpenThreads.cmake)
if(OPENTHREADS_FOUND)
return()
endif()
endif()
# Header files are presumed to be included like
# #include <OpenThreads/Thread>