-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove libSquish from repository. #5
base: master
Are you sure you want to change the base?
Conversation
CMakeLists.txt
Outdated
@@ -30,6 +30,13 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") | |||
endif() | |||
endif() | |||
|
|||
find_package(libSquish REQUIRED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The case needs to match the Find*.cmake for case-sensitive OSes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know. I wasn't aware it did this search in a case-sensitive manner.
cmake/FindLibSquish.cmake
Outdated
|
||
find_path(LIBSQUISH_INCLUDE_DIR squish.h PATHS ${LIBSQUISH_INC_SEARCH} DOC "Path containing libSquish header") | ||
find_library(LIBSQUISH_LIBRARY_RELEASE NAMES squish libsquish PATHS . squish .. ../squish ${LIBSQUISH_LIB_SEARCH} PATH_SUFFIXES lib DOC "Path to libSquish release library") | ||
find_library(LIBSQUISH_LIBRARY_DEBUG NAMES squishd libsquishd PATHS . squish .. ../squish ${LIBSQUISH_LIB_SEARCH} PATH_SUFFIXES lib DOC "Path to libSquish debug library") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Searching in the current directory implies that we've recommended installed it into the source (or binary) dir. I feel like we should just have the default paths, plus the LIBSQUISH_*_SEARCH path.
671f537
to
1d30f70
Compare
Uses CMake to find system LibSquish instead.
1d30f70
to
c34d700
Compare
Merge conflicts have been resolved. |
|
||
if(LIBSQUISH_PATH) | ||
file(TO_CMAKE_PATH ${LIBSQUISH_PATH}/include LIBSQUISH_INC_SEARCH ) | ||
file(TO_CMAKE_PATH ${LIBSQUISH_PATH}/lib LIBSQUISH_LIB_SEARCH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some more tabs...
|
||
find_path(LIBSQUISH_INCLUDE_DIR squish.h PATHS ${LIBSQUISH_INC_SEARCH} DOC "Path containing libSquish header") | ||
find_library(LIBSQUISH_LIBRARY_RELEASE NAMES squish libsquish PATHS ${LIBSQUISH_LIB_SEARCH} PATH_SUFFIXES lib DOC "Path to libSquish release library") | ||
find_library(LIBSQUISH_LIBRARY_DEBUG NAMES squishd libsquishd PATHS ${LIBSQUISH_LIB_SEARCH} PATH_SUFFIXES lib DOC "Path to libSquish debug library") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should probably be broken up with newlines to fit better on narrow editors / browsers.
Uses CMake to find libSquish instead.