Skip to content

Commit 0b3ba79

Browse files
Remove redundant check
1 parent 8930c93 commit 0b3ba79

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,7 @@ if (COMPILER_CACHE STREQUAL "chcache" AND CHCACHE_EXECUTABLE_PATH STREQUAL "")
617617
message(STATUS "Adding chcache as dependency to all other targets")
618618
get_all_targets(all_targets)
619619
set(chcache_targets _cargo-build_chcache cargo-build_chcache cargo-prebuild_chcache)
620-
if(NOT TARGET cargo-build_chcache)
621-
message(FATAL_ERROR "Building chcache is disabled and CHCACHE_EXECUTABLE_PATH is not set, cannot use chcache as compiler cache.")
622-
endif()
620+
623621
foreach(target ${all_targets})
624622
if (target IN_LIST chcache_targets)
625623
continue()

rust/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
add_subdirectory (workspace)
2-
3-
option(ENABLE_CHCACHE "Enable chcache" ${ENABLE_RUST})
4-
5-
if (ENABLE_CHCACHE)
6-
add_subdirectory (chcache)
7-
endif()
2+
add_subdirectory (chcache)

0 commit comments

Comments
 (0)