aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/UseVala.cmake6
-rwxr-xr-xconfigure7
2 files changed, 9 insertions, 4 deletions
diff --git a/cmake/UseVala.cmake b/cmake/UseVala.cmake
index 2ba01ee7..94ea4534 100644
--- a/cmake/UseVala.cmake
+++ b/cmake/UseVala.cmake
@@ -118,7 +118,9 @@ function(vala_precompile output)
cmake_parse_arguments(ARGS "FAST_VAPI" "DIRECTORY;GENERATE_HEADER;GENERATE_VAPI;EXPORTS_DIR"
"SOURCES;PACKAGES;OPTIONS;DEFINITIONS;CUSTOM_VAPIS;GRESOURCES" ${ARGN})
- set(ARGS_FAST_VAPI true)
+ if("Ninja" STREQUAL ${CMAKE_GENERATOR})
+ set(ARGS_FAST_VAPI true)
+ endif()
if(ARGS_DIRECTORY)
get_filename_component(DIRECTORY ${ARGS_DIRECTORY} ABSOLUTE)
@@ -274,7 +276,7 @@ function(vala_precompile output)
${ARGS_CUSTOM_VAPIS}
${ARGS_GRESOURCES}
COMMENT
- "Generating VAPI and headers for linking"
+ "Generating VAPI and headers for target ${output}"
)
endif()
else(ARGS_FAST_VAPI)
diff --git a/configure b/configure
index 7ee87ad4..a0dd959e 100755
--- a/configure
+++ b/configure
@@ -34,10 +34,9 @@ if ! [ -x "$exec_bin" ]; then
make_bin="$(which make 2>/dev/null)"
if [ -x "$make_bin" ]; then
echo "-- Found Make: $make_bin"
- echo "-- Using Ninja (ninja-build) might improve build experience."
cmake_type="Unix Makefiles"
exec_bin="$make_bin"
- exec_command="$exec_bin -j4"
+ exec_command="$exec_bin"
fi
fi
@@ -95,3 +94,7 @@ default:
%:
@sh -c "cd build; $exec_command \"\$@\""
EOF
+
+if [[ "$exec_bin" == "$make_bin" ]]; then
+ echo "-- Running with make. Using Ninja (ninja-build) might improve build experience."
+fi \ No newline at end of file