aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-12 19:31:02 +0100
committerMarvin W <git@larma.de>2017-03-12 19:41:44 +0100
commit4f34e431163ac49e2c41079d44c5dd4a71b362d1 (patch)
tree32c605fb7802e7ef380eafd21ffcde2caa0afbc8 /cmake
parentfabd6ff2515b3d904a0f38e1f423d9b09b2ed933 (diff)
downloaddino-4f34e431163ac49e2c41079d44c5dd4a71b362d1.tar.gz
dino-4f34e431163ac49e2c41079d44c5dd4a71b362d1.zip
Force Make into using a single thread
This also restricts fast-vapi's to Ninja. fast-vapi's improve build performance when multi-threaded, but are bad when single-threaded. Again emphasize that ninja-build should be used.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/UseVala.cmake6
1 files changed, 4 insertions, 2 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)