zynaddsubfx

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

commit fe2a2b111c526d8161826301c69b776e8c402952
parent 4ad23b090e2ea64c637adfd41ffa81887080b43d
Author: kinichiro <[email protected]>
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)