Author: cfinck
Date: Fri Jan 13 09:43:12 2017
New Revision: 73534
URL:
http://svn.reactos.org/svn/reactos?rev=73534&view=rev
Log:
Only generate installation rules for rostests if the ROSTESTS_INSTALL environment variable
is defined.
Modified:
trunk/reactos/sdk/cmake/CMakeMacros.cmake
Modified: trunk/reactos/sdk/cmake/CMakeMacros.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/cmake/CMakeMacros.cmak…
==============================================================================
--- trunk/reactos/sdk/cmake/CMakeMacros.cmake [iso-8859-1] (original)
+++ trunk/reactos/sdk/cmake/CMakeMacros.cmake [iso-8859-1] Fri Jan 13 09:43:12 2017
@@ -834,5 +834,8 @@
endif()
add_cd_file(FILE ${_ROSTESTS_FILE} DESTINATION
"reactos/bin${_ROSTESTS_SUBDIR}" FOR all)
- install(FILES ${_ROSTESTS_FILE} DESTINATION
"$ENV{ROSTESTS_INSTALL}${_ROSTESTS_SUBDIR}" COMPONENT rostests)
-endfunction()
+
+ if(DEFINED ENV{ROSTESTS_INSTALL})
+ install(FILES ${_ROSTESTS_FILE} DESTINATION
"$ENV{ROSTESTS_INSTALL}${_ROSTESTS_SUBDIR}" COMPONENT rostests)
+ endif()
+endfunction()