Nitrokey / nitrokey-app

Nitrokey's Application (Win, Linux, Mac)
https://www.nitrokey.com/
287 stars 55 forks source link

CMake fix for system-provided libnitrokey #493

Closed panicgh closed 1 year ago

panicgh commented 1 year ago

I tried to build nitrokey-app with a system-provided libnitrokey, but CMake always tried to load the bundled one (which didn't exist because I cloned the repo without submodules).

The used negation operator ! does not exist in CMake and the condition always evaluates to FALSE, i.e. the system-provided libnitrokey is never used and the bundled one is always used.