1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Description: Locates workflow header files
Author: Lance Lin <lq27267@gmail.com>
Forwarded: not-needed
Last-Update: 2024-09-02
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -5,7 +5,7 @@
DEFAULT_BUILD_DIR := build.cmake
BUILD_DIR := $(shell if [ -f $(MAKE_FILE) ]; then echo "."; else echo $(DEFAULT_BUILD_DIR); fi)
CMAKE3 := $(shell if which cmake3>/dev/null ; then echo cmake3; else echo cmake; fi;)
-WORKFLOW := $(shell if [ -f "workflow/workflow-config.cmake.in" ]; then echo "Found"; else echo "NotFound"; fi)
+WORKFLOW := $(shell if [ -f "/usr/include/workflow" ]; then echo "Found"; else echo "NotFound"; fi)
.PHONY: $(ALL_TARGETS)
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -34,7 +34,7 @@
set(SNAPPY_LIB snappy)
endif ()
-if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/workflow/workflow-config.cmake.in")
+if (NOT EXISTS "/usr/include/workflow/")
find_package(Workflow REQUIRED CONFIG HINTS ../workflow)
endif ()
--- a/test/unittest.cc
+++ b/test/unittest.cc
@@ -21,8 +21,8 @@
#include <string.h>
#include <string>
#include <gtest/gtest.h>
-#include "workflow/WFOperator.h"
-#include "workflow/WFFacilities.h"
+#include <workflow/WFOperator.h>
+#include <workflow/WFFacilities.h>
#include "test_pb.srpc.h"
#include "test_thrift.srpc.h"
|