Skip to content

Commit

Permalink
systemtests: Fix build without Python support
Browse files Browse the repository at this point in the history
Fix CMake Error: "get_target_property() called with non-existent target"
if Python support is FALSE.
  • Loading branch information
fbergkemper committed Aug 27, 2019
1 parent 07c71f8 commit 995eb66
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions systemtests/CMakeLists.txt
Expand Up @@ -99,10 +99,13 @@ set(mon_sd_password "mon_sd_password")
set(python_plugin_module_src_dir ${CMAKE_SOURCE_DIR}/core/src/plugins)
set(plugindirtmp ${PROJECT_BINARY_DIR}/plugindirtmp)
set(rscripts ${PROJECT_BINARY_DIR}/scripts)
get_target_property(fd_plugin_binary_path python-fd BINARY_DIR)
if(NOT client-only)
get_target_property(dir_plugin_binary_path python-dir BINARY_DIR)
get_target_property(sd_plugin_binary_path python-sd BINARY_DIR)

if(PYTHONLIBS_FOUND)
get_target_property(fd_plugin_binary_path python-fd BINARY_DIR)
if(NOT client-only)
get_target_property(dir_plugin_binary_path python-dir BINARY_DIR)
get_target_property(sd_plugin_binary_path python-sd BINARY_DIR)
endif()
endif()

set(sbindir ${PROJECT_BINARY_DIR}/sbin)
Expand Down

0 comments on commit 995eb66

Please sign in to comment.