Skip to content

Commit

Permalink
Update dap4_test for systems without getopt
Browse files Browse the repository at this point in the history
  • Loading branch information
WardF committed Apr 12, 2023
1 parent c8b3b37 commit 7c48b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dap4_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ IF(ENABLE_TESTS)
build_bin_test(test_parse)
build_bin_test(test_meta)
IF(USE_X_GETOPT)
build_bin_test(test_data XGetopt.c)
build_bin_test(test_data ${CMAKE_SOURCE_DIR}/libdispatch/XGetopt.c)
ELSE()
build_bin_test(test_data)
ENDIF()
Expand Down

1 comment on commit 7c48b58

@DennisHeimbigner
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I took care of this in PR #2678, but I guess I missed this one.
Anyway, it should probably look like this:

IF(USE_X_GETOPT)
  SET(XGETOPTSRC " ${CMAKE_SOURCE_DIR}/libdispatch/XGetopt.c")
ENDIF()
...
build_bin_test(test_data ${XGETOPTSRC})

Please sign in to comment.