tpm2-software / tpm2-tss

OSS implementation of the TCG TPM2 Software Stack (TSS2)
https://tpm2-software.github.io
BSD 2-Clause "Simplified" License
732 stars 360 forks source link

libcmocka dependency should be conditional #261

Closed flihp closed 8 years ago

flihp commented 8 years ago

This library isn't critical to the proper operation of the TSS build. It's only required for testing. Thus we should detect the presence of libcmocka and enable the unit tests if it's available. If not the unit tests should be disabled.

flihp commented 8 years ago

Probably a good idea to provide a configure flag (--with-cmocka) to force a configure time failure if cmocka isn't installed too

flihp commented 8 years ago

This is a specific request from people who are annoyed by having to install the unit testing library when they're not running any of the tests. I'm not sure how I feel about this but "you've gotta give the people what they want" or something.