Squashed 'cmake/' content from commit 2d25566
git-subtree-dir: cmake git-subtree-split: 2d25566a1c5162ce3fd6bfc268d5665de182af89
This commit is contained in:
28
UseTR1.cmake
Normal file
28
UseTR1.cmake
Normal file
@@ -0,0 +1,28 @@
|
||||
# - Use settings to enable access to C++ TR1
|
||||
#
|
||||
# This calls include_directories and link_directories as needed to
|
||||
# permit TR1 support.
|
||||
#
|
||||
# Original Author:
|
||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||
# http://academic.cleardefinition.com
|
||||
# Iowa State University HCI Graduate Program/VRAC
|
||||
#
|
||||
# Copyright Iowa State University 2009-2010
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
if(__use_tr1)
|
||||
return()
|
||||
endif()
|
||||
set(__use_tr1 YES)
|
||||
|
||||
|
||||
if(TR1_INCLUDE_DIRS)
|
||||
include_directories(${TR1_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(TR1_LIBRARY_DIRS)
|
||||
link_directories(${TR1_LIBRARY_DIRS})
|
||||
endif()
|
||||
Reference in New Issue
Block a user