From b4c2ce16c660c27dbfdeef12a55a0c7d448a83d2 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Thu, 1 Apr 2021 09:15:10 +0200 Subject: Fix linux build --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 048a159..91cdf43 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-DNOMINMAX -D_USE_MATH_DEFINES) include_directories(${CMAKE_SOURCE_DIR}/include) include_directories(${Vulkan_INCLUDE_DIRS}) -if(${CMAKE_SYSTEM_NAME} EQUAL "Linux") +if(UNIX AND NOT APPLE) include_directories(${X11_xcb_INCLUDE_PATH}) endif() @@ -23,7 +23,7 @@ add_executable( window.cpp ) -if(${CMAKE_SYSTEM_NAME} EQUAL "Linux") +if(UNIX AND NOT APPLE) list(APPEND LIBRARIES ${CMAKE_DL_LIBS} ${X11_xcb_LIB} ${X11_xkbcommon_LIB} ${X11_xkbcommon_X11_LIB}) endif() -- cgit v1.3