yrnkrn / zapcc

zapcc is a caching C++ compiler based on clang, designed to perform faster compilations
Other
1.25k stars 61 forks source link

CMake Error at tools/zapccs/CMakeLists.txt:52 (target_link_libraries) #18

Closed Chaz6 closed 6 years ago

Chaz6 commented 6 years ago

When running CMake with latest master (0b9ac4188ff8b33fa358cc7931e40ce63b5ecce3) the following output occurs:-

CMake Error at tools/zapccs/CMakeLists.txt:52 (target_link_libraries):
  The keyword signature for target_link_libraries has already been used with
  the target "zapccs".  All uses of target_link_libraries with a target must
  be either all-keyword or all-plain.

  The uses of the keyword signature are here:

   * cmake/modules/LLVM-Config.cmake:105 (target_link_libraries)
   * cmake/modules/AddLLVM.cmake:771 (target_link_libraries)

CMake Error at tools/zapccs/CMakeLists.txt:56 (target_link_libraries):
  The plain signature for target_link_libraries has already been used with
  the target "zapccs".  All uses of target_link_libraries with a target must
  be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * tools/zapccs/CMakeLists.txt:52 (target_link_libraries)

-- Configuring incomplete, errors occurred!
yrnkrn commented 6 years ago

Is this "dirty" build by any chance? does rm -rf the build directory help?

lamogui commented 6 years ago

I got it too, revert to previous revision is working

yrnkrn commented 6 years ago

I'll recheck.

yrnkrn commented 6 years ago

I tested the Windows build, this is Linux-specific. Fixed in 6646fe3b5fe3cb712617f942ecf8462a0145accf.