cmake/cephfs: fix options to enable client and dependencies#62108
cmake/cephfs: fix options to enable client and dependencies#62108
Conversation
|
oops, this still fails: |
|
Shouldn't client be excluded when |
|
Don't consider this a blocker, but that we were building anything under client with |
it used to be controlled by |
|
@cbodley wouldn't this be single line fix if we add if(WITH_LIBCEPHFS) in the |
so then why not use |
invoking cmake with -DWITH_LIBCEPHFS=OFF fails to configure the client target:
CMake Error at src/client/CMakeLists.txt:13 (target_link_libraries):
Target "client" links to:
Boost::locale
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
because the client target is not conditional on WITH_LIBCEPHFS in src/CMakeLists.txt:
add_subdirectory(client)
if(WITH_LIBCEPHFS)
because client is also needed for ceph-fuse, make the client and its
dependencies depend on WITH_LIBCEPHFS OR WITH_FUSE
Signed-off-by: Casey Bodley <[email protected]>
bf8591b to
70eb1d6
Compare
thanks @kchheda3, i redid it this way. the cmake configure step seems to work for all combinations of WITH_LIBCEPHFS and WITH_FUSE |
adamemerson
left a comment
There was a problem hiding this comment.
Know that to this PR I say "Hell, yes!"
|
This PR is under test in https://tracker.ceph.com/issues/70328. |
Sure, please merge if it's all green. I just wanted to include this with the other PR I'm testing. |
|
|
jenkins test make check |
|
backported via #62095 |
invoking cmake with
-DWITH_LIBCEPHFS=OFFfails to configure theclienttarget:because the
clienttarget is not conditional onWITH_LIBCEPHFSin src/CMakeLists.txt:because
clientis also needed forceph-fuse, make theclientand its dependencies depend onWITH_LIBCEPHFS OR WITH_FUSEShow available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition