aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-22 17:34:45 -0800
committerChris Robinson <[email protected]>2019-01-22 17:34:45 -0800
commit3ab4bc51865d89728bf7e8fee3a1eadd08131c96 (patch)
tree7a5f4d340e1b781bc6f56c09bde73c34d0519e39
parent5c0dcd1f24a85798ded45abb97bdd80a9d93a8b6 (diff)
Don't install utilities that aren't built
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c14be46..0748aee5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1511,9 +1511,12 @@ IF(ALSOFT_AMBDEC_PRESETS)
ENDIF()
IF(ALSOFT_UTILS)
+ set(UTIL_TARGETS )
+
ADD_EXECUTABLE(openal-info utils/openal-info.c)
TARGET_COMPILE_OPTIONS(openal-info PRIVATE ${C_FLAGS})
TARGET_LINK_LIBRARIES(openal-info PRIVATE ${LINKER_FLAGS} OpenAL)
+ set(UTIL_TARGETS ${UTIL_TARGETS} openal-info)
find_package(MySOFA)
if(MYSOFA_FOUND)
@@ -1525,6 +1528,7 @@ IF(ALSOFT_UTILS)
target_compile_definitions(makehrtf PRIVATE ${CPP_DEFS})
target_compile_options(makehrtf PRIVATE ${C_FLAGS})
target_link_libraries(makehrtf PRIVATE ${LINKER_FLAGS} MySOFA::MySOFA)
+ set(UTIL_TARGETS ${UTIL_TARGETS} makehrtf)
set(SOFAINFO_SRCS utils/sofa-info.cpp)
add_executable(sofa-info ${SOFAINFO_SRCS})
@@ -1534,7 +1538,7 @@ IF(ALSOFT_UTILS)
endif()
IF(ALSOFT_INSTALL)
- INSTALL(TARGETS openal-info makehrtf
+ INSTALL(TARGETS ${UTIL_TARGETS}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}