Skip to content

Commit

Permalink
Fix compatibilities with vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqr committed Dec 19, 2020
1 parent 22425cb commit 723d01d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions cmake/FindFFTW.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# FFTW_INCLUDES ... fftw include directory
#
# The following variables will be checked by the function
# FFTW_USE_STATIC_LIBS ... if true, only static libraries are found
# FFTW_ROOT ... if set, the libraries are exclusively searched
# under this path
# FFTW_LIBRARY ... fftw library to use
Expand All @@ -29,15 +28,6 @@ if( PKG_CONFIG_FOUND AND NOT FFTW_ROOT )
pkg_check_modules( PKG_FFTW QUIET "fftw3" )
endif()

#Check whether to search static or dynamic libs
set( CMAKE_FIND_LIBRARY_SUFFIXES_SAV ${CMAKE_FIND_LIBRARY_SUFFIXES} )

if( ${FFTW_USE_STATIC_LIBS} )
set( CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX} )
else()
set( CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_SHARED_LIBRARY_SUFFIX} )
endif()

if( FFTW_ROOT )

#find libs
Expand Down Expand Up @@ -109,8 +99,6 @@ if(FFTWL_LIB)
set(FFTW_LIBRARIES ${FFTW_LIBRARIES} ${FFTWL_LIB})
endif()

set( CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_SAV} )

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FFTW DEFAULT_MSG
FFTW_INCLUDES FFTW_LIBRARIES)
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindHunspell.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ FIND_PATH(HUNSPELL_INCLUDE_DIR NAMES hunspell.h
PATH_SUFFIXES hunspell
)

FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.7 hunspell-1.6 hunspell-1.5 hunspell-1.4 hunspell-1.3 hunspell-1.2 hunspell ${HUNSPELL_PKG_LIBRARIES}
find_library(HUNSPELL_LIBRARIES NAMES hunspell-1.7 hunspell-1.6 hunspell-1.5 hunspell-1.4 hunspell-1.3 hunspell-1.2 hunspell libhunspell ${HUNSPELL_PKG_LIBRARIES}
PATHS
/usr/local
/usr
Expand Down

0 comments on commit 723d01d

Please sign in to comment.