diff options
author | selsta <selsta@sent.at> | 2021-07-15 09:30:32 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-08-12 04:52:51 +0200 |
commit | ccfed6008a180344771dbf670db2705422d7c651 (patch) | |
tree | 21aad5f41ca3a9d1367a129e563d4614541429db /cmake/FindCcache.cmake | |
parent | cmake: fix ccache detection (diff) | |
download | monero-ccfed6008a180344771dbf670db2705422d7c651.tar.xz |
cmake: test is a reserved keyword
Diffstat (limited to 'cmake/FindCcache.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 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) |