From 5d8f43789ae6d4cf001b1443eb46e909f0fbd673 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 24 May 2022 14:42:42 -0400 Subject: [PATCH] spaces in JAVA_HOME usability --- unit_tests/unit_test_rules.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unit_tests/unit_test_rules.mk b/unit_tests/unit_test_rules.mk index d884e27fbc..8cc941d35b 100644 --- a/unit_tests/unit_test_rules.mk +++ b/unit_tests/unit_test_rules.mk @@ -137,6 +137,10 @@ ifndef JAVA_HOME $(error JAVA_HOME is undefined - due to JNI integration unit tests depend on JAVA_HOME) endif +ifneq (1,$(words [$(JAVA_HOME)])) +$(error JAVA_HOME $(JAVA_HOME) seems to contain spaces this would not work well. please use folder name without space often progra~1) +endif + AOPT = -fPIC -I$(JAVA_HOME)/include ifeq ($(OS),Windows_NT)