Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake won't configure on master with BUILD_SHARED_LIBS=OFF #796

Closed
johnhe4 opened this issue Oct 23, 2023 · 0 comments · Fixed by #808
Closed

CMake won't configure on master with BUILD_SHARED_LIBS=OFF #796

johnhe4 opened this issue Oct 23, 2023 · 0 comments · Fixed by #808

Comments

@johnhe4
Copy link

johnhe4 commented Oct 23, 2023

macos, not cross-compiling, using cmake 3.27.

CMake arguments include:

  • -DBUILD_SHARED_LIBS=OFF
  • -DBUILD_TESTING=OFF
  • -DENABLE_SSL_SUPPORT=ON
  • -DCMAKE_POSITION_INDEPENDENT_CODE=ON

Error during configure phase:

-- Building rabbitmq as a shared library - no
-- Building rabbitmq as a static library - yes
-- Configuring incomplete, errors occurred!
CMake Error at librabbitmq/CMakeLists.txt:143 (set_target_properties):
  set_target_properties Can not find target to add properties to: rabbitmq

Seems like there is a dependency on the shared target, but I'm only compiling the static target.

alanxz added a commit that referenced this issue Jan 4, 2024
Corrects bug where cmake fails on MacOS when building static-only
library with an error that looks like:

CMake Error at librabbitmq/CMakeLists.txt:143 (set_target_properties):
  set_target_properties Can not find target to add properties to: rabbitmq

Fixed: #796

Signed-off-by: GitHub <[email protected]>
alanxz added a commit that referenced this issue Jan 4, 2024
Corrects bug where cmake fails on MacOS when building static-only
library with an error that looks like:

CMake Error at librabbitmq/CMakeLists.txt:143 (set_target_properties):
  set_target_properties Can not find target to add properties to: rabbitmq

Fixed: #796

Signed-off-by: GitHub <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant