Policy CMP0022 for CMake. Forgotten library in Unicorn link.

This commit is contained in:
Jean-Paul Chaput 2015-06-11 18:01:39 +02:00
parent d151038de9
commit 4bf5cf74b4
3 changed files with 25 additions and 5 deletions

View File

@ -9,7 +9,10 @@
cmake_policy(SET CMP0005 NEW)
if(NOT (CMAKE_VERSION VERSION_LESS 2.8.0))
cmake_policy(SET CMP0014 OLD)
endif(NOT (CMAKE_VERSION VERSION_LESS 2.8.0))
endif()
if(NOT (CMAKE_VERSION VERSION_LESS 2.8.12))
cmake_policy(SET CMP0022 OLD)
endif()
endif(COMMAND CMAKE_POLICY)
endmacro(set_cmake_policies)
@ -89,7 +92,7 @@
# Adds to the CMAKE_MODULE_PATH directories guesseds from project
# environment variables <PROJECT>_USER_TOP and <PROJECT>_TOP.
#
macro(SETUP_PROJECT_PATHS project)
macro(setup_project_paths project)
if( NOT("$ENV{${project}_TOP}" STREQUAL "") )
message("-- ${project}_TOP is set to $ENV{${project}_TOP}")
set(PROJECT_MODULE_PATH "${DESTDIR}$ENV{${project}_TOP}/share/cmake/Modules/")
@ -103,7 +106,7 @@
endif( NOT("$ENV{${project}_USER_TOP}" STREQUAL "") )
list(REMOVE_DUPLICATES CMAKE_MODULE_PATH)
endmacro(SETUP_PROJECT_PATHS project)
endmacro(setup_project_paths project)
#

View File

@ -31,7 +31,25 @@
* </ul>
*
*
* \section secForEachMacro The forEach Macro
* \section secIterator STL Iterator Support
*
* The Collections now provides a basic iterator support to allow the
* C++11 \c for contruct:
\code
Cell* cell = ...; // Get a Cell from somewhere.
for( Net* inet : cell->getNets() ) {
cout << "This is " << inet;
if (inet->isExternal())
cout << " [external net].";
cout << endl;
}
\endcode
* Although the \c forEach macro is still retained for backward compatibility,
* it is advisable to use the C++11 way.
*
*
* \section secForEachMacro The forEach Macro (obsoleted)
*
* Collections are to be used in conjunction with the \c forEach macro
* which allows to easily iterate over the elements. Iteration is done

View File

@ -7,7 +7,6 @@
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
find_package(Bootstrap REQUIRED)
setup_project_paths(IMPORTEDS)
setup_project_paths(CORIOLIS)
set_cmake_policies()