diff options
author | daan <daan@effp.org> | 2022-10-31 15:49:04 -0700 |
---|---|---|
committer | daan <daan@effp.org> | 2022-10-31 15:49:04 -0700 |
commit | 7cb1fdc44e2bba83497fda6b22f5fb5d441a0af0 (patch) | |
tree | b2db293e1cfa865fb93800693c59de9517a7d02e | |
parent | 4dcd7e68429f74867ba6fd6eb39872a2c505b8bf (diff) |
nicer style for pc_libraries
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2456626..144395d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -250,10 +250,11 @@ if(WIN32) list(APPEND mi_libraries psapi shell32 user32 advapi32 bcrypt) set(pc_libraries "-lpsapi -lshell32 -luser32 -ladvapi32 -lbcrypt") else() + set(pc_libraries "") find_library(MI_LIBPTHREAD pthread) if (MI_LIBPTHREAD) list(APPEND mi_libraries ${MI_LIBPTHREAD}) - set(pc_libraries "-pthread") + set(pc_libraries "${pc_libraries} -pthread") endif() find_library(MI_LIBRT rt) if(MI_LIBRT) |