Skip to content

Commit 755849a

Browse files
committed
Use CMAKE_CURRENT_SOURCE_DIR
Otherwise if a project embeds this library, it tries to find JSONTestSuite in its top level CMakeLists.txt directory
1 parent ac4e2f7 commit 755849a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (JSON_CPP_BUILD_TESTS)
3737
add_custom_command(
3838
TARGET jsontestsuite_test POST_BUILD
3939
COMMAND ${CMAKE_COMMAND} -E copy_directory
40-
${CMAKE_SOURCE_DIR}/JSONTestSuite
40+
${CMAKE_CURRENT_SOURCE_DIR}/JSONTestSuite
4141
${CMAKE_CURRENT_BINARY_DIR}/JSONTestSuite
4242
)
4343

0 commit comments

Comments
 (0)