From 0a147693e8fcc6106bbbb9a66675bf2cf450fd33 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 20 Aug 2017 04:46:45 -0700 Subject: Properly add getopt.c to makehrtf --- CMakeLists.txt | 5 +++-- 1 file 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) -- cgit v1.2.3