diff options
author | Roger Leigh <rleigh@codelibre.net> | 2021-03-07 19:15:41 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@codelibre.net> | 2021-03-07 19:15:41 +0000 |
commit | d6f09d6b52809e95e4af004c75c1cd390c479c6f (patch) | |
tree | 6977279a05bb6c29b92984f6a862a4022e5c1cf3 /cmake | |
parent | 2652cb826283051ac18a011d074156d0526e27e9 (diff) | |
download | libtiff-git-d6f09d6b52809e95e4af004c75c1cd390c479c6f.tar.gz |
cmake: FindJBIG uses lib prefix on Windows
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindJBIG.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/FindJBIG.cmake b/cmake/FindJBIG.cmake index ebc44af0..f0c232c3 100644 --- a/cmake/FindJBIG.cmake +++ b/cmake/FindJBIG.cmake @@ -41,6 +41,10 @@ find_path(JBIG_INCLUDE_DIR NAMES jbig.h PATH_SUFFIXES include) +set(JBIG_OLD_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") +# Library has a "lib" prefix even on Windows. +set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "") + # Allow JBIG_LIBRARY to be set manually, as the location of the jbig library if(NOT JBIG_LIBRARY) find_library(JBIG_LIBRARY_RELEASE @@ -54,8 +58,11 @@ if(NOT JBIG_LIBRARY) select_library_configurations(JBIG) endif() +set(CMAKE_FIND_LIBRARY_PREFIXES "${JBIG_OLD_FIND_LIBRARY_PREFIXES}") + unset(JBIG_NAMES) unset(JBIG_NAMES_DEBUG) +unset(JBIG_OLD_FIND_LIBRARY_PREFIXES) mark_as_advanced(JBIG_INCLUDE_DIR) |