aboutsummaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorQuentin Ladevie <ladevie.quentin@gmail.com>2021-03-14 23:28:39 +0100
committerQuentin Ladevie <ladevie.quentin@gmail.com>2021-03-14 23:28:39 +0100
commitda0bf8dc570f6e8421b8d80546dfce913b8251ad (patch)
tree06646be201b1157923a8f08e7d7562859cb3f1a5 /src/CMakeLists.txt
parent26369a8cdf90320cdd472fdca23ee38f7ce48302 (diff)
Make it compile on mac
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5380cde..6ebef73 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(UNIX)
+if(${CMAKE_SYSTEM_NAME} EQUAL "Linux")
include_directories(${X11_xcb_INCLUDE_PATH})
endif()
@@ -24,7 +24,7 @@ add_executable(
window.cpp
)
-if(UNIX)
+if(${CMAKE_SYSTEM_NAME} EQUAL "Linux")
list(APPEND LIBRARIES ${CMAKE_DL_LIBS} ${X11_xcb_LIB} ${X11_xkbcommon_LIB} ${X11_xkbcommon_X11_LIB})
endif()