mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-10 06:59:40 +02:00
simplify the sixense find module removing unecessary checks
This commit is contained in:
parent
45f4e033f3
commit
1cfa4d7990
1 changed files with 17 additions and 34 deletions
|
@ -18,11 +18,6 @@
|
|||
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
#
|
||||
|
||||
if (SIXENSE_LIBRARIES AND SIXENSE_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
set(SIXENSE_FOUND TRUE)
|
||||
else ()
|
||||
|
||||
set(SIXENSE_SEARCH_DIRS "${SIXENSE_ROOT_DIR}" "$ENV{HIFI_LIB_DIR}/sixense")
|
||||
|
||||
find_path(SIXENSE_INCLUDE_DIRS sixense.h PATH_SUFFIXES include HINTS ${SIXENSE_SEARCH_DIRS})
|
||||
|
@ -41,17 +36,5 @@ else ()
|
|||
include(SelectLibraryConfigurations)
|
||||
select_library_configurations(SIXENSE)
|
||||
|
||||
if (SIXENSE_INCLUDE_DIRS AND SIXENSE_LIBRARIES)
|
||||
set(SIXENSE_FOUND TRUE)
|
||||
endif ()
|
||||
|
||||
if (SIXENSE_FOUND)
|
||||
if (NOT SIXENSE_FIND_QUIETLY)
|
||||
message(STATUS "Found Sixense: ${SIXENSE_LIBRARIES}")
|
||||
endif (NOT SIXENSE_FIND_QUIETLY)
|
||||
else ()
|
||||
if (SIXENSE_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could not find Sixense")
|
||||
endif (SIXENSE_FIND_REQUIRED)
|
||||
endif ()
|
||||
endif ()
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(SIXENSE DEFAULT_MSG SIXENSE_INCLUDE_DIRS SIXENSE_LIBRARIES)
|
||||
|
|
Loading…
Reference in a new issue