Only generate installation rules for rostests if the ROSTESTS_INSTALL environment...
authorColin Finck <colin@reactos.org>
Fri, 13 Jan 2017 09:43:12 +0000 (09:43 +0000)
committerColin Finck <colin@reactos.org>
Fri, 13 Jan 2017 09:43:12 +0000 (09:43 +0000)
svn path=/trunk/; revision=73534

reactos/sdk/cmake/CMakeMacros.cmake

index c9c915d..0afd329 100644 (file)
@@ -834,5 +834,8 @@ function(add_rostests_file)
     endif()
 
     add_cd_file(FILE ${_ROSTESTS_FILE} DESTINATION "reactos/bin${_ROSTESTS_SUBDIR}" FOR all)
     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)
+
+    if(DEFINED ENV{ROSTESTS_INSTALL})
+        install(FILES ${_ROSTESTS_FILE} DESTINATION "$ENV{ROSTESTS_INSTALL}${_ROSTESTS_SUBDIR}" COMPONENT rostests)
+    endif()
 endfunction()
 endfunction()