aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-08-02 18:54:15 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-08-02 18:54:15 -0400
commite3b3fb577a27abf48224bf58e6b479688a4f0bfd (patch)
tree9887a24c23e0b317f51e6faeb0be86a36905fa4d /cmake
parentMerge pull request #7790 (diff)
parentcmake: test is a reserved keyword (diff)
downloadmonero-e3b3fb577a27abf48224bf58e6b479688a4f0bfd.tar.xz
Merge pull request #7794
4414ed4 cmake: test is a reserved keyword (selsta)
Diffstat (limited to 'cmake')
-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)