diff options
author | Chris Robinson <[email protected]> | 2017-08-20 04:46:45 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-20 04:46:45 -0700 |
commit | 0a147693e8fcc6106bbbb9a66675bf2cf450fd33 (patch) | |
tree | f97d05d72e561fb36d9f3f39ae03f27e3202f04b | |
parent | 55643d6370430a73bbf0c4ce8d7a2e689b9891d9 (diff) |
Properly add getopt.c to makehrtf
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 25d66d6b..7e68eb1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1396,10 +1396,11 @@ IF(ALSOFT_UTILS) SET_PROPERTY(TARGET openal-info APPEND PROPERTY COMPILE_FLAGS ${EXTRA_CFLAGS}) TARGET_LINK_LIBRARIES(openal-info OpenAL) - ADD_EXECUTABLE(makehrtf utils/makehrtf.c) + SET(MAKEHRTF_SRCS utils/makehrtf.c) IF(NOT HAVE_GETOPT) - SET_PROPERTY(TARGET makehrtf APPEND PROPERTY SOURCE utils/getopt.c) + SET(MAKEHRTF_SRCS ${MAKEHRTF_SRCS} utils/getopt.c) ENDIF() + ADD_EXECUTABLE(makehrtf ${MAKEHRTF_SRCS}) SET_PROPERTY(TARGET makehrtf APPEND PROPERTY COMPILE_FLAGS ${EXTRA_CFLAGS}) IF(HAVE_LIBM) TARGET_LINK_LIBRARIES(makehrtf m) |