aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-07-15 09:30:32 +0200
committerselsta <selsta@sent.at>2021-08-12 04:52:51 +0200
commitccfed6008a180344771dbf670db2705422d7c651 (patch)
tree21aad5f41ca3a9d1367a129e563d4614541429db
parentcmake: fix ccache detection (diff)
downloadmonero-ccfed6008a180344771dbf670db2705422d7c651.tar.xz
cmake: test is a reserved keyword
-rw-r--r--cmake/FindCcache.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindCcache.cmake b/cmake/FindCcache.cmake
index f7b1b8425..164ddf601 100644
--- a/cmake/FindCcache.cmake
+++ b/cmake/FindCcache.cmake
@@ -50,7 +50,7 @@ option (CCACHE "")
file(WRITE "${CMAKE_SOURCE_DIR}/test.cpp" "int main() { return 0; }")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE}")
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CCACHE}")
-add_executable(test test.cpp)
+add_executable(main test.cpp)
]=])
try_compile(RET "${TEST_PROJECT}/build" "${TEST_PROJECT}" "test" CMAKE_FLAGS -DCCACHE="${CCACHE_FOUND}")
unset(TEST_PROJECT)