diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-07 19:47:32 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-07 19:48:10 -0800 |
commit | 5fddef00fd9e52566a93c7115f83b72c97a82be7 (patch) | |
tree | c3ffc5395ceaedbe1c52b9e57418119e3b2c379d /tests | |
parent | 5ac59f8127a174705f6d94905f40d11d8d7d8910 (diff) |
On Windows, look for headers in missing, to find getopt.h when building tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3a107042..937e85d8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,7 +1,6 @@ if(MSVC) - file(GLOB PROJECT_SOURCE_LIST_WIN32_C - ${pcap_SOURCE_DIR}/missing/getopt.c - ) + file(GLOB PROJECT_SOURCE_LIST_WIN32_C ${pcap_SOURCE_DIR}/missing/getopt.c) + include_directories(${pcap_SOURCE_DIR}/missing) endif(MSVC) add_custom_target(tests) |