diff options
| author | Přemysl Janouch <p.janouch@gmail.com> | 2015-08-06 21:56:21 +0200 | 
|---|---|---|
| committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-08-06 21:56:21 +0200 | 
| commit | 396cc0f5f561ca69283a4a8ca9097ddbf1c5c479 (patch) | |
| tree | 3f79aa03dfa5202219a2a57a93f88e4815852e7c | |
| parent | 268a359cf41966af3b59b10db5499d107fedd651 (diff) | |
| download | ponymap-396cc0f5f561ca69283a4a8ca9097ddbf1c5c479.tar.gz ponymap-396cc0f5f561ca69283a4a8ca9097ddbf1c5c479.tar.xz ponymap-396cc0f5f561ca69283a4a8ca9097ddbf1c5c479.zip | |
Fix library searching
| -rw-r--r-- | CMakeLists.txt | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a7f421..38bc2f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,11 +58,12 @@ link_directories (${libssl_LIBRARY_DIRS} ${jansson_LIBRARY_DIRS})  # -lpthread is only there for debugging (gdb & errno)  # -lrt is only for glibc < 2.17 +# -liconv may or may not be a part of libc  foreach (extra iconv dl rt pthread) -	find_library (extra_lib ${extra}) -	if (extra_lib) +	find_library (extra_lib_${extra} ${extra}) +	if (extra_lib_${extra})  		list (APPEND project_libraries ${extra}) -	endif (extra_lib) +	endif (extra_lib_${extra})  endforeach (extra)  # Project source files | 
