Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
1cda776e
Commit
1cda776e
authored
Oct 28, 2015
by
deuce
Browse files
Attempt to use the "system" xpdev, and fall back to the one in the magical
path only if needed.
parent
ed2de923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/conio/CMakeLists.txt
src/conio/CMakeLists.txt
+7
-2
No files found.
src/conio/CMakeLists.txt
View file @
1cda776e
...
...
@@ -2,12 +2,12 @@ project (ConIOLib C)
cmake_minimum_required
(
VERSION 2.8.11
)
INCLUDE
(
../build/SynchronetMacros.cmake
)
INCLUDE
(
CheckFunctionExists
)
INCLUDE
(
FindSDL
)
INCLUDE
(
FindX11
)
INCLUDE
(
FindCurses
)
INCLUDE
(
FindThreads
)
find_package
(
XPDev QUIET CONFIG PATHS lib/cmake/XPDev
)
set
(
SOURCE
ansi_cio.c
...
...
@@ -50,7 +50,12 @@ if(NEED_BITMAP)
endif
()
add_library
(
ciolib SHARED
${
SOURCE
}
)
require_lib
(
ciolib xpdev
)
if
(
XPDev_FOUND
)
target_link_libraries
(
ciolib xpdev
)
else
()
INCLUDE
(
../build/SynchronetMacros.cmake
)
require_lib
(
ciolib xpdev
)
endif
()
target_compile_definitions
(
ciolib PRIVATE CIOLIB_EXPORTS
)
target_compile_definitions
(
ciolib INTERFACE CIOLIB_IMPORTS
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment