File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ option(LLAMA_SANITIZE_ADDRESS "llama: enable address sanitizer" OFF)
6363option (LLAMA_SANITIZE_UNDEFINED "llama: enable undefined sanitizer" OFF )
6464
6565# utils
66- option (LLAMA_BUILD_COMMON "llama: build common utils library" ON )
66+ option (LLAMA_BUILD_COMMON "llama: build common utils library" ${LLAMA_STANDALONE} )
6767
6868# extra artifacts
6969option (LLAMA_BUILD_TESTS "llama: build tests" ${LLAMA_STANDALONE} )
@@ -201,12 +201,12 @@ if (LLAMA_BUILD_COMMON)
201201 add_subdirectory (common)
202202endif ()
203203
204- if (LLAMA_BUILD_TESTS AND NOT CMAKE_JS_VERSION)
204+ if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TESTS AND NOT CMAKE_JS_VERSION)
205205 include (CTest)
206206 add_subdirectory (tests)
207207endif ()
208208
209- if (LLAMA_BUILD_EXAMPLES)
209+ if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_EXAMPLES)
210210 add_subdirectory (examples)
211211 add_subdirectory (pocs)
212212endif ()
You can’t perform that action at this time.
0 commit comments