From 7daba70db36bf27d1e08f86576bcc813ab3e5cda Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Tue, 17 Apr 2018 23:11:10 +0200 Subject: [PATCH] cmake: use relative path to source-file If this project is used via `add_subdirectory()` the json-schema-test.cpp was not found. --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6ec2e18..5ffc763 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -27,7 +27,7 @@ set(JSON_SCHEMA_TEST_PREFIX "JSON-Suite" CACHE STRING "prefix for JSON-tests add if(JSON_SCHEMA_TEST_SUITE_PATH) # json-schema-validator-tester - add_executable(json-schema-test ${CMAKE_SOURCE_DIR}/app/json-schema-test.cpp) + add_executable(json-schema-test ../app/json-schema-test.cpp) target_link_libraries(json-schema-test json-schema-validator) target_compile_definitions(json-schema-test PRIVATE