summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtProcessConfigureArgs.cmake42
1 files changed, 26 insertions, 16 deletions
diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake
index 2189f1dbd5..402ca52b24 100644
--- a/cmake/QtProcessConfigureArgs.cmake
+++ b/cmake/QtProcessConfigureArgs.cmake
@@ -603,24 +603,34 @@ translate_string_input(android-javac-target QT_ANDROID_JAVAC_TARGET)
drop_input(make)
drop_input(nomake)
-set(build_parts libs tests examples tools ${INPUT_make})
-list(REMOVE_DUPLICATES build_parts)
+
foreach(part ${INPUT_nomake})
- list(REMOVE_ITEM build_parts ${part})
+ if("${part}" STREQUAL "tests")
+ push("-DBUILD_TESTING=OFF")
+ continue()
+ endif()
+ if("${part}" STREQUAL "examples")
+ push("-DBUILD_EXAMPLES=OFF")
+ continue()
+ endif()
+ qtConfAddWarning("'-nomake ${part}' is not implemented yet.")
+endforeach()
+
+foreach(part ${INPUT_make})
+ if("${part}" STREQUAL "tests")
+ push("-DBUILD_TESTING=ON")
+ continue()
+ endif()
+ if("${part}" STREQUAL "examples")
+ push("-DBUILD_EXAMPLES=ON")
+ continue()
+ endif()
+ if("${part}" STREQUAL "tools")
+ # default
+ continue()
+ endif()
+ qtConfAddWarning("'-make ${part}' is not implemented yet.")
endforeach()
-if("tests" IN_LIST build_parts)
- push("-DBUILD_TESTING=ON")
-else()
- push("-DBUILD_TESTING=OFF")
-endif()
-if("examples" IN_LIST build_parts)
- push("-DBUILD_EXAMPLES=ON")
-else()
- push("-DBUILD_EXAMPLES=OFF")
-endif()
-if(NOT "tools" IN_LIST build_parts)
- qtConfAddWarning("'-nomake tools' is not implemented yet.")
-endif()
drop_input(debug)
drop_input(release)