Skip to content

Commit

Permalink
#2144: Search for ccache only in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed May 31, 2023
1 parent 62014b6 commit c57d408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/"
)

if (NOT DEFINED CMAKE_CXX_COMPILER_LAUNCHER)
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR AND NOT DEFINED CMAKE_CXX_COMPILER_LAUNCHER)
# Try to find ccache to speed up compilation
find_program(ccache_binary ccache)
if (ccache_binary)
Expand Down

0 comments on commit c57d408

Please sign in to comment.