Commit d8bf2e0a authored by Jasem Mutlaq's avatar Jasem Mutlaq

Make it find wcslib on Windows

parent 7ef959fa
......@@ -17,7 +17,6 @@ if (WCSLIB_INCLUDE_DIR AND WCSLIB_LIBRARIES)
set(WCSLIB_FOUND TRUE)
message(STATUS "Found WCSLIB: ${WCSLIB_LIBRARIES}, ${WCSLIB_INCLUDE_DIR}")
else (WCSLIB_INCLUDE_DIR AND WCSLIB_LIBRARIES)
if (NOT WIN32)
......@@ -33,14 +32,14 @@ else (WCSLIB_INCLUDE_DIR AND WCSLIB_LIBRARIES)
${_obIncDir}
${GNUWIN32_DIR}/include
)
find_library(WCSLIB_LIBRARIES NAMES wcs
find_library(WCSLIB_LIBRARIES NAMES wcs wcslib
PATHS
${PC_WCSLIB_LIBRARY_DIRS}
${_obLinkDir}
${GNUWIN32_DIR}/lib
)
if(WCSLIB_INCLUDE_DIR AND WCSLIB_LIBRARIES)
set(WCSLIB_FOUND TRUE)
else (WCSLIB_INCLUDE_DIR AND WCSLIB_LIBRARIES)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment