target_link_libraries
This commit is contained in:
@@ -7,7 +7,7 @@ if(NANA_CMAKE_ENABLE_AUDIO)
|
||||
find_package(ASOUND)
|
||||
if(ASOUND_FOUND)
|
||||
target_include_directories(nana PUBLIC ${ASOUND_INCLUDE_DIRS})
|
||||
target_compile_options(nana PUBLIC -lasound)
|
||||
target_link_libraries(nana PUBLIC ${ASOUND_LIBRARY})
|
||||
else()
|
||||
message(FATAL_ERROR "libasound is not found")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user