aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-07-15 09:30:32 +0200
committerselsta <selsta@sent.at>2021-07-15 15:35:03 +0200
commit4414ed401d35cf5f2b2a0085b012e7a478e4a01f (patch)
tree6a808c7b24742394ccc60f7579d7342cfbdf359d
parentMerge pull request #7764 (diff)
downloadmonero-4414ed401d35cf5f2b2a0085b012e7a478e4a01f.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 2eb2fa2fd..d98518134 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)