Check BinPkgModules for empty value.

This commit is contained in:
Kolan Sh 2017-12-19 08:45:51 +03:00
parent 7797a9d1cc
commit 5aec8e830a
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ VALA_PRECOMPILE (VALA_C ${BinSources}
GENERATE_VAPI GENERATE_VAPI
GENERATE_HEADER GENERATE_HEADER
) )
IF (NOT "${LibPkgModules}" STREQUAL "") IF (NOT "${BinPkgModules}" STREQUAL "")
PKG_CHECK_MODULES (PKGS REQUIRED ${LibPkgModules}) PKG_CHECK_MODULES (PKGS REQUIRED ${BinPkgModules})
ENDIF () ENDIF ()
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/po) INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/po)
ADD_EXECUTABLE (${BinName} ${VALA_C} ${BinExtraSources}) ADD_EXECUTABLE (${BinName} ${VALA_C} ${BinExtraSources})