From 417e262dfc2924f0d6547fc74c0b00ce2de9ac45 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Tue, 3 Oct 2017 16:36:59 +0200 Subject: [PATCH] Build rosapps, rostests, wallpapers when their CMake variables are set instead of checking for directory existence. By default, ReactOS will now build without any of these modules. You can enable them using e.g. "configure -DENABLE_ROSTESTS=1". --- modules/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 286d3e8547a..cafa4b33969 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -1,13 +1,13 @@ -if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rostests/) +if(ENABLE_ROSTESTS) add_subdirectory(rostests) endif() -if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rosapps/) +if(ENABLE_ROSAPPS) add_subdirectory(rosapps) endif() -if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpapers/) +if(ENABLE_WALLPAPERS) add_subdirectory(wallpapers) endif() -- 2.17.1