Browse Source

cmake: test is a reserved keyword

wonerujo-v0.10.1
selsta 5 months ago
parent
commit
ccfed6008a
Signed by untrusted user: selsta GPG Key ID: 2EA0A99A8B07AE5E
  1. 2
      cmake/FindCcache.cmake

2
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)

Loading…
Cancel
Save