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

Build failure: INTERFACE_LIBRARY targets may only have whitelisted properties. #4284

Closed
anagainaru opened this issue Aug 3, 2024 · 4 comments · Fixed by #4290
Closed

Build failure: INTERFACE_LIBRARY targets may only have whitelisted properties. #4284

anagainaru opened this issue Aug 3, 2024 · 4 comments · Fixed by #4290

Comments

@anagainaru
Copy link
Contributor

The build fails on my mac

CMake Error at source/adios2/CMakeLists.txt:490 (set_target_properties):
  INTERFACE_LIBRARY targets may only have whitelisted properties.  The
  property "VERSION" is not allowed.


CMake Error at source/adios2/CMakeLists.txt:490 (set_target_properties):
  INTERFACE_LIBRARY targets may only have whitelisted properties.  The
  property "SOVERSION" is not allowed.

due to these lines in source/adios2/CMakeLists.txt

set_target_properties(
  adios2_core ${maybe_adios2_core_mpi}
  PROPERTIES
  VERSION ${ADIOS2_LIBRARY_VERSION}
  SOVERSION ${ADIOS2_LIBRARY_SOVERSION}
)
@eisenhauer
Copy link
Member

What version of CMake are you using? (That's old code...)

@anagainaru
Copy link
Contributor Author

cmake version 3.18.3

There was a change in 3.19 if I understand correctly. If this is the case maybe we should bump the min version?

@eisenhauer
Copy link
Member

Maybe... @vicentebolea ?

@vicentebolea
Copy link
Collaborator

Lets stay in cmake 3.18. This error is due to a regression that I accidentally added in #fix mpi

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.

3 participants