diff options
-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) |