spajak / cef-pdf

cef-pdf HTML to PDF utility
MIT License
77 stars 33 forks source link

FIX_MACOSX_HELPER_FRAMEWORK_RPATH no found, in macos #36

Open NullYing opened 3 years ago

NullYing commented 3 years ago

I run build command in macos

cmake -G "Xcode" -DPROJECT_ARCH="x86_64" -DCEF_ROOT=/Users/123/src/cef-pdf/cef_binary_90.6.7+g19ba721+chromium-90.0.4430.212_macosx64_minimal ../

or

cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT=/Users/123/src/cef-pdf/cef_binary_90.6.7+g19ba721+chromium-90.0.4430.212_macosx64_minimal ../

It failed with this:

CMake Warning (dev) at src/CMakeLists.txt:70 (add_executable):
  Policy CMP0037 is not set: Target names should not be reserved and should
  match a validity pattern.  Run "cmake --help-policy CMP0037" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  The target name "cef-pdf Helper" is reserved or not valid for certain CMake
  features, such as generator expressions, and may result in undefined
  behavior.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at src/CMakeLists.txt:80 (FIX_MACOSX_HELPER_FRAMEWORK_RPATH):
  Unknown CMake command "FIX_MACOSX_HELPER_FRAMEWORK_RPATH".

-- Configuring incomplete, errors occurred!
See also "/Users/weijiangchen/src/cef-pdf/build/CMakeFiles/CMakeOutput.log".