@@ -33,7 +33,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
3333option (SKIP_PACKAGING"" OFF )
3434
3535# enable frontend build
36- option (USE_FRONTEND"build the browser-based frontend (requires yarn and nodejs)" ON )
36+ option (USE_FRONTEND"build the browser-based frontend (requires yarn and nodejs)" ${USE_V8} )
3737
3838# be verbose about flags used
3939option (VERBOSE"be verbose about flags used" OFF )
@@ -162,7 +162,7 @@ if(USE_ENTERPRISE)
162162 add_definitions ("-DUSE_ENTERPRISE=1" )
163163endif ()
164164
165- # enable V8/JavaScript in executables.
165+ # enable V8/JavaScript in executables.
166166# note that V8 will always be built, regardless of the value of this option.
167167# this is required because the V8 build step also builds ICU, which is needed
168168# in all programs.
@@ -276,7 +276,7 @@ configure_file(
276276################################################################################
277277
278278function (determine_repository_version source_dir build_repository have_build_repository)
279- # Get commit hash
279+ # Get commit hash
280280 execute_process (
281281WORKING_DIRECTORY ${source_dir}
282282COMMAND ${GIT_EXE} rev-parse --short HEAD
@@ -511,7 +511,7 @@ CheckCompilerVersion(
511511 16.0# Clang
512512)
513513
514- if (CMAKE_COMPILER_IS_CLANG)
514+ if (CMAKE_COMPILER_IS_CLANG)
515515 list (APPEND BASE_LIBS atomic)
516516endif ()
517517
@@ -815,7 +815,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
815815# might fails when we use additional compiler flags like fcoverage...
816816 set (BASE_FLAGS"-Wall -Wextra -Wno-unused-parameter -Wno-deprecated-declarations -Wno-error=unused-command-line-argument${BASE_FLAGS} " )
817817 set (EXTRA_CXX_FLAGS"-Wnon-virtual-dtor" )
818-
818+
819819 if (CMAKE_CXX_COMPILER_VERSIONVERSION_GREATER_EQUAL "11.0" )
820820# clang 11 and higher supports -Wsuggest-override. older versions don't
821821 set (EXTRA_CXX_FLAGS"-Wsuggest-override${EXTRA_CXX_FLAGS} " )
@@ -844,7 +844,7 @@ endif()
844844
845845# c
846846# note: when building one of the build types, CMake will automatically combine
847- # the base flags from CMAKE_C_FLAGS with build type-specific flags in
847+ # the base flags from CMAKE_C_FLAGS with build type-specific flags in
848848# CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE}.
849849# there is no need to repeat the base flags in the build-type specific flags!
850850set (CMAKE_C_FLAGS"" CACHE INTERNAL "default C compiler flags" )
@@ -855,7 +855,7 @@ set(CMAKE_C_FLAGS_RELWITHDEBINFO "${DEBUGINFO_FLAGS} -O3 -fno-omit-frame-point
855855
856856# cxx
857857# note: when building one of the build types, CMake will automatically combine
858- # the base flags from CMAKE_CXX_FLAGS with build type-specific flags in
858+ # the base flags from CMAKE_CXX_FLAGS with build type-specific flags in
859859# CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}.
860860# there is no need to repeat the base flags in the build-type specific flags!
861861set (CMAKE_CXX_FLAGS "" CACHE INTERNAL "default C++ compiler flags" )
@@ -1054,7 +1054,7 @@ if(STATIC_EXECUTABLES)
10541054else ()
10551055 set (BLA_STATICOff )
10561056 set (BLA_VENDOR OpenBLAS)
1057-
1057+
10581058# Setting this is necessary because we want to bind to gcc library
10591059# since the LLVM OpenMP implementation fails in our CI
10601060# This is related to this issue (https://github.com/llvm/llvm-project/issues/137136)
@@ -1065,7 +1065,7 @@ else()
10651065OUTPUT_VARIABLE LIBGOMP_PATH
10661066 OUTPUT_STRIP_TRAILING_WHITESPACE
10671067 )
1068-
1068+
10691069 if (EXISTS "${LIBGOMP_PATH} " )
10701070 message (STATUS "Found libgomp:${LIBGOMP_PATH} " )
10711071 set (OpenMP_gomp_LIBRARY"${LIBGOMP_PATH} " )
@@ -1075,23 +1075,23 @@ else()
10751075 message (STATUS "Found libgomp via find_library:${LIBGOMP_LIBRARY} " )
10761076 set (OpenMP_gomp_LIBRARY"${LIBGOMP_LIBRARY} " )
10771077 endif ()
1078-
1078+
10791079 set (OpenMP_C_FLAGS"-fopenmp=libgomp" )
10801080 set (OpenMP_CXX_FLAGS"-fopenmp=libgomp" )
10811081 set (OpenMP_C_LIB_NAMES"gomp;pthread" )
10821082 set (OpenMP_CXX_LIB_NAMES"gomp;pthread" )
10831083 set (OpenMP_pthread_LIBRARY"pthread" )
1084-
1084+
10851085 find_package (OpenMP REQUIRED)
1086-
1086+
10871087 message (STATUS "OpenMP_CXX_VERSION:${OpenMP_CXX_VERSION} " )
10881088 message (STATUS "OpenMP_CXX_FLAGS:${OpenMP_CXX_FLAGS} " )
10891089 message (STATUS "OpenMP_CXX_LIB_NAMES:${OpenMP_CXX_LIB_NAMES} " )
10901090 message (STATUS "OpenMP_gomp_LIBRARY:${OpenMP_gomp_LIBRARY} " )
10911091 message (STATUS "OpenMP_omp_LIBRARY:${OpenMP_omp_LIBRARY} " )
10921092 message (STATUS "OpenMP_pthread_LIBRARY:${OpenMP_pthread_LIBRARY} " )
10931093 message (STATUS "OpenMP_CXX_LIBRARIES:${OpenMP_CXX_LIBRARIES} " )
1094-
1094+
10951095
10961096 find_package (LAPACK)
10971097 find_package (BLAS)
@@ -1157,6 +1157,9 @@ endforeach()
11571157add_subdirectory (Documentation)
11581158include (ArangoDBInstall)
11591159if (USE_FRONTEND)
1160+ if (NOT (USE_V8))
1161+ message (FATAL_ERROR"Can't build frontend without V8" )
1162+ endif ()
11601163 include (frontend/aardvark)
11611164endif ()
11621165if (NOT (SKIP_PACKAGING))
@@ -1203,7 +1206,7 @@ foreach(m IN LISTS ERROR_FILES)
12031206endforeach ()
12041207
12051208add_custom_target (errorfilesALL DEPENDS ${ERROR_FILES_GEN} )
1206-
1209+
12071210set (EXIT_CODE_FILES
12081211 lib/Basics/exitcodes.h
12091212 js/common/bootstrap/exitcodes.js