[cmake-commits] david.cole committed CMakeLists.txt 1.86 1.88

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Oct 1 15:57:36 EDT 2007


Update of /cvsroot/CMake/CMake/Tests/SimpleInstall
In directory public:/mounts/ram/cvs-serv20843/SimpleInstall

Modified Files:
	CMakeLists.txt 
Log Message:
COMP: Rename the executables for the SimpleInstall tests so that the executable files that run during the test do not have the word install in their file names. This allows running the tests on Windows Vista without admin privileges and without adding a manifest containing the asInvoker requestedExecutionLevel element.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/SimpleInstall/CMakeLists.txt,v
retrieving revision 1.86
retrieving revision 1.88
diff -u -d -r1.86 -r1.88
--- CMakeLists.txt	20 Sep 2007 14:56:33 -0000	1.86
+++ CMakeLists.txt	1 Oct 2007 19:57:34 -0000	1.88
@@ -65,9 +65,9 @@
     DOC "Fourth library")
 
   INCLUDE_DIRECTORIES(${CMAKE_INSTALL_PREFIX}/MyTest/include)
-  ADD_EXECUTABLE (SimpleInstallS2 inst2.cxx foo.c foo.h)
-  TARGET_LINK_LIBRARIES(SimpleInstallS2 ${TEST1_LIBRARY} ${TEST2_LIBRARY} ${TEST4_LIBRARY})
-  SET(install_target SimpleInstallS2)
+  ADD_EXECUTABLE (SimpleInstExeS2 inst2.cxx foo.c foo.h)
+  TARGET_LINK_LIBRARIES(SimpleInstExeS2 ${TEST1_LIBRARY} ${TEST2_LIBRARY} ${TEST4_LIBRARY})
+  SET(install_target SimpleInstExeS2)
 
   IF("${TEST1_LIBRARY}" MATCHES "static")
     MESSAGE(STATUS "test1 correctly found in lib/static")
@@ -130,10 +130,10 @@
   ENDIF(EMPTY_FILES)
 
   # Make sure the test executable can run from the install tree.
-  SET_TARGET_PROPERTIES(SimpleInstallS2 PROPERTIES
+  SET_TARGET_PROPERTIES(SimpleInstExeS2 PROPERTIES
     INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/MyTest/lib)
 
-  INSTALL_TARGETS(/MyTest/bin SimpleInstallS2)
+  INSTALL_TARGETS(/MyTest/bin SimpleInstExeS2)
 
 # try to import the exported targets again
   SET(SimpleInstallS1_DIR ${CMAKE_INSTALL_PREFIX}/MyTest/lib)
@@ -260,7 +260,7 @@
   SET_DIRECTORY_PROPERTIES(PROPERTIES
     ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_INSTALL_PREFIX}/InstallScriptOut.cmake)
 
-  SET_TARGET_PROPERTIES(SimpleInstall PROPERTIES OUTPUT_NAME SimpleInstallExe)
+  SET_TARGET_PROPERTIES(SimpleInstall PROPERTIES OUTPUT_NAME SimpleInstExe)
   # Disable VERSION test until it is implemented in the XCode generator.
   IF(NOT XCODE)
     SET_TARGET_PROPERTIES(SimpleInstall PROPERTIES VERSION 1.2)



More information about the Cmake-commits mailing list