zynaddsubfx

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

commit 06ce6e64b2feb189096a81f1c81162dee79f47d5
parent 7512d29f21a37382950279dbbd44d8c4f59b9b5e
Author: kinichiro <kinichiro.inoguchi@gmail.com>
Date:   Mon, 13 Jul 2020 12:21:52 +0900

Get the X11 library path only if libX11 exists

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

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -341,7 +341,9 @@ 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(NOT ${X11_X11_LIB} STREQUAL "") + get_filename_component(X11_LIBRARY_DIRS ${X11_X11_LIB} DIRECTORY) +endif() if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") add_definitions(-DWIN32)