[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.156 1.157
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Jul 31 08:27:39 EDT 2009
Update of /cvsroot/CMake/CMake
In directory public:/mounts/ram/cvs-serv2456
Modified Files:
CMakeLists.txt
Log Message:
Fix installation when built by CMake 2.4
CMake 2.4 generates old-style cmake_install.cmake code including calls
to the file(INSTALL) command with the COMPONENTS argument. We need to
set CMAKE_INSTALL_SELF_2_4 for the whole install tree to prevent the
command from complaining in this special case. Previously this was
needed only in the QtDialog directory, but now it is needed in the
entire tree.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/CMakeLists.txt,v
retrieving revision 1.156
retrieving revision 1.157
diff -C 2 -d -r1.156 -r1.157
*** CMakeLists.txt 24 Jul 2009 21:33:11 -0000 1.156
--- CMakeLists.txt 31 Jul 2009 12:27:34 -0000 1.157
***************
*** 10,13 ****
--- 10,19 ----
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
+ IF(NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4)
+ # Since the built CMake will install itself instead of the
+ # generating CMake, tell it that the install rules were generated
+ # by CMake 2.4.
+ INSTALL(CODE "SET(CMAKE_INSTALL_SELF_2_4 1)")
+ ENDIF()
#-----------------------------------------------------------------------
More information about the Cmake-commits
mailing list