(reVC) link X11 library on Linux

This commit is contained in:
alex 2021-07-31 17:33:55 +01:00 committed by GitHub
parent 6a56e98e69
commit 0cf98fa028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,12 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang
-Wpedantic
)
endif()
if (NOT WIN32 AND NOT APPLE)
target_link_libraries(${EXECUTABLE}
PRIVATE
X11
)
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(${EXECUTABLE}
PUBLIC