summaryrefslogtreecommitdiff
path: root/cmake/FindLFSC.cmake
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-12-06 06:48:04 -0800
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-12-06 08:48:04 -0600
commit008d6b51baec353f45324e1d9407d898866cf688 (patch)
tree136e5c1dcbfb32f1fed99b853b79c2f7ecc6b5d2 /cmake/FindLFSC.cmake
parent46bae5d2a8b22867f917c6f644e46e29884049f9 (diff)
contrib: Setup all dependencies in deps/ directory. (#3534)
Diffstat (limited to 'cmake/FindLFSC.cmake')
-rw-r--r--cmake/FindLFSC.cmake24
1 files changed, 2 insertions, 22 deletions
diff --git a/cmake/FindLFSC.cmake b/cmake/FindLFSC.cmake
index 7a666839b..6135c7891 100644
--- a/cmake/FindLFSC.cmake
+++ b/cmake/FindLFSC.cmake
@@ -3,28 +3,8 @@
# LFSC_INCLUDE_DIR - the LFSC include directory
# LFSC_LIBRARIES - Libraries needed to use LFSC
-
-# Check default location of LFSC built with contrib/get-lfsc.
-# If the user provides a directory we will not search the default paths and
-# fail if LFSC was not found in the specified directory.
-if(NOT LFSC_HOME)
- set(LFSC_HOME ${PROJECT_SOURCE_DIR}/lfsc-checker/install)
- set(CHECK_SYSTEM_VERSION TRUE)
-endif()
-
-find_path(LFSC_INCLUDE_DIR
- NAMES lfscc.h
- PATHS ${LFSC_HOME}/include
- NO_DEFAULT_PATH)
-find_library(LFSC_LIBRARIES
- NAMES lfscc
- PATHS ${LFSC_HOME}/lib
- NO_DEFAULT_PATH)
-
-if(CHECK_SYSTEM_VERSION)
- find_path(LFSC_INCLUDE_DIR NAMES lfscc.h)
- find_library(LFSC_LIBRARIES NAMES lfscc)
-endif()
+find_path(LFSC_INCLUDE_DIR NAMES lfscc.h)
+find_library(LFSC_LIBRARIES NAMES lfscc)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LFSC
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback