Fix to detect gnokii header file #57

Merged
SlavekB merged 1 commits from feat/fix-gnokii-detection into master 3 years ago
obache commented 3 years ago
Collaborator

It is used as the build condition in kaddressbook.

partially resolve #56

It is used as the build condition in kaddressbook. partially resolve #56
obache added 1 commit 3 years ago
5d8b6e40c4
Fix to detect gnokii header file
SlavekB requested changes 3 years ago
SlavekB left a comment
Owner

It looks good, just there is one small note.

It looks good, just there is one small note.
if( WITH_GNOKII AND (BUILD_KADDRESSBOOK OR BUILD_KMOBILE) )
check_include_file( "gnokii.h" HAVE_GNOKII_H )
Owner

It seems like a good idea to do first test the presence of gnokii and only then test the presence of the header. It could also be useful for the fact that the gnokii module test can set GNOKII_INCLUDEDIR, or something like that.

It seems like a good idea to do first test the presence of gnokii and only then test the presence of the header. It could also be useful for the fact that the gnokii module test can set `GNOKII_INCLUDEDIR`, or something like that.
obache commented 3 years ago
Poster
Collaborator

It is the reason why "partially resolve #56".

It is the reason why "partially resolve #56".
SlavekB marked this conversation as resolved
obache force-pushed feat/fix-gnokii-detection from 5d8b6e40c4 to 0ed55e9b49 3 years ago
obache force-pushed feat/fix-gnokii-detection from 0ed55e9b49 to ddad09c064 3 years ago
SlavekB reviewed 3 years ago
SlavekB left a comment
Owner

Great, it looks good. You may consider a small simplification – see the comment.

Great, it looks good. You may consider a small simplification – see the comment.
if( NOT GNOKII_FOUND )
tde_message_fatal( "gnokii are requested, but was not found on your system" )
else( )
tde_save( CMAKE_REQUIRED_INCLUDES )
Owner

I suggest a small simplification: instead of a separate tde_save(...) followed by set(...), it is possible to use the tde_save_and_set(...) macro.

I suggest a small simplification: instead of a separate `tde_save(...)` followed by `set(...)`, it is possible to use the `tde_save_and_set(...)` macro.
SlavekB marked this conversation as resolved
obache force-pushed feat/fix-gnokii-detection from ddad09c064 to 9354d05e27 3 years ago
obache force-pushed feat/fix-gnokii-detection from 9354d05e27 to dea6d6ca6a 3 years ago
SlavekB approved these changes 3 years ago
SlavekB left a comment
Owner

Great, thank you, it looks good.

Great, thank you, it looks good.
SlavekB merged commit dea6d6ca6a into master 3 years ago
SlavekB deleted branch feat/fix-gnokii-detection 3 years ago
SlavekB added this to the R14.0.11 release milestone 3 years ago

Reviewers

SlavekB approved these changes 3 years ago
The pull request has been merged as dea6d6ca6a.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdepim#57
Loading…
There is no content yet.