zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 4ad23b090e2ea64c637adfd41ffa81887080b43d
parent d999717501ca8c724a995314cec2a4f4bd80b1cd
Author: kinichiro <[email protected]>
Date:   Wed,  1 Jul 2020 17:49:33 +0900

Add libX11 path to link directory

Diffstat:
Msrc/CMakeLists.txt | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -341,6 +341,8 @@ message(STATUS "Compiling with liblo") include_directories(${ZLIB_INCLUDE_DIRS} ${MXML_INCLUDE_DIRS}) include_directories(${CMAKE_BINARY_DIR}/src) # for zyn-version.h ... +get_filename_component(X11_LIBRARY_DIRS ${X11_X11_LIB} DIRECTORY) + if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") add_definitions(-DWIN32) endif() @@ -512,7 +514,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zyn-version.h.in configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zyn-config.h.in ${CMAKE_CURRENT_BINARY_DIR}/zyn-config.h) -link_directories(${AUDIO_LIBRARY_DIRS} ${ZLIB_LIBRARY_DIRS} ${FFTW_LIBRARY_DIRS} ${MXML_LIBRARY_DIRS} ${FLTK_LIBRARY_DIRS} ${NTK_LIBRARY_DIRS}) +link_directories(${AUDIO_LIBRARY_DIRS} ${ZLIB_LIBRARY_DIRS} ${FFTW_LIBRARY_DIRS} ${MXML_LIBRARY_DIRS} ${FLTK_LIBRARY_DIRS} ${NTK_LIBRARY_DIRS} ${X11_LIBRARY_DIRS}) include_directories( ${CMAKE_CURRENT_SOURCE_DIR}