Fixed FindJRTPLib.cmake

This commit is contained in:
f4exb 2018-02-16 11:03:16 +01:00
parent 31c3b11194
commit 22bbc9eecd
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
if(NOT JRTPLIB_FOUND)
INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(PC_JRTPLIB "jrtplib")
@ -32,6 +34,6 @@ else()
message(STATUS "JRTPLib not found")
endif()
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JRTPLIB DEFAULT_MSG JRTPLIB_LIBRARIES JRTPLIB_INCLUDE_DIR)
MARK_AS_ADVANCED(JRTPLIB_LIBRARIES JRTPLIB_INCLUDE_DIR)
endif(NOT JRTPLIB_FOUND)