diff options
author | selsta <selsta@sent.at> | 2021-07-15 09:30:32 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-07-15 15:35:03 +0200 |
commit | 4414ed401d35cf5f2b2a0085b012e7a478e4a01f (patch) | |
tree | 6a808c7b24742394ccc60f7579d7342cfbdf359d /cmake | |
parent | Merge pull request #7764 (diff) | |
download | monero-4414ed401d35cf5f2b2a0085b012e7a478e4a01f.tar.xz |
cmake: test is a reserved keyword
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindCcache.cmake | 2 |
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) |