Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up CMake stuff; remove profile on OSX.
profile on OSX is deprecated and does not work anymore.
- Loading branch information
Showing
9 changed files
with
80 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
#!/usr/bin/env cmake | ||
|
||
# Policies, partly from osg | ||
if(COMMAND cmake_policy) | ||
# Works around warnings libraries linked against that don't | ||
# have absolute paths (e.g. -lpthreads) | ||
cmake_policy(SET CMP0003 NEW) | ||
|
||
cmake_policy(SET CMP0007 NEW) #empty list handling | ||
|
||
# tell CMake to prefer CMake's own CMake modules when available | ||
# only available from cmake-2.8.4 | ||
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 8 AND ${CMAKE_PATCH_VERSION} GREATER 3) | ||
cmake_policy(SET CMP0017 NEW) | ||
endif() | ||
# Works around warnings libraries linked against that don't | ||
# have absolute paths (e.g. -lpthreads) | ||
cmake_policy(SET CMP0003 NEW) | ||
|
||
# cmake-2.6.1 introduces policy cmp0008 decide how to treat full path libraries that do not appear to be valid library file names | ||
# quote from cvslog "Such libraries worked by accident in the VS IDE and Xcode generators in CMake 2.4 and below." | ||
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4 AND ${CMAKE_PATCH_VERSION} GREATER 0) | ||
cmake_policy(SET CMP0008 OLD) | ||
endif() | ||
|
||
cmake_policy(SET CMP0007 NEW) #empty list handling | ||
|
||
# tell CMake to prefer CMake's own CMake modules when available | ||
# only available from cmake-2.8.4 | ||
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 8 AND ${CMAKE_PATCH_VERSION} GREATER 3) | ||
cmake_policy(SET CMP0017 NEW) | ||
endif() | ||
|
||
# cmake-2.6.1 introduces policy cmp0008 decide how to treat full path libraries that do not appear to be valid library file names | ||
# quote from cvslog "Such libraries worked by accident in the VS IDE and Xcode generators in CMake 2.4 and below." | ||
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4 AND ${CMAKE_PATCH_VERSION} GREATER 0) | ||
cmake_policy(SET CMP0008 OLD) | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env cmake | ||
# | ||
# out: | ||
# $SRC_VMDATE | ||
# $SRC_VMDATE | ||
# | ||
# in: | ||
# $SELF_BUILD_SUPPORT_DIR | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters