Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
0f14713d
Commit
0f14713d
authored
Nov 05, 2015
by
Baruch Sterin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMakeLists.txt, Makefile: pass readline flags from the CMake lists file to the Makefile.
parent
0f4fc1ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
CMakeLists.txt
+9
-0
Makefile
+10
-0
No files found.
CMakeLists.txt
View file @
0f14713d
...
@@ -25,10 +25,19 @@ endfunction()
...
@@ -25,10 +25,19 @@ endfunction()
project
(
abc
)
project
(
abc
)
if
(
READLINE_FOUND MATCHES TRUE
)
addprefix
(
READLINE_INCLUDES_FLAGS
"-I"
${
READLINE_INCLUDES
}
)
list
(
APPEND ABC_READLINE_FLAGS
"ABC_READLINE_INCLUDES=
${
READLINE_INCLUDES_FLAGS
}
"
)
list
(
APPEND ABC_READLINE_FLAGS
"ABC_READLINE_LIBRARIES=
${
READLINE_LIBRARIES
}
"
)
elseif
(
READLINE_FOUND MATCHES FALSE
)
list
(
APPEND ABC_READLINE_FLAGS
"ABC_USE_NO_READLINE=1"
)
endif
()
# run make to extract compiler options, linker options and list of source files
# run make to extract compiler options, linker options and list of source files
execute_process
(
execute_process
(
COMMAND
COMMAND
make
make
${
ABC_READLINE_FLAGS
}
ABC_MAKE_NO_DEPS=1
ABC_MAKE_NO_DEPS=1
CC=
${
CMAKE_C_COMPILER
}
CC=
${
CMAKE_C_COMPILER
}
CXX=
${
CMAKE_CXX_COMPILER
}
CXX=
${
CMAKE_CXX_COMPILER
}
...
...
Makefile
View file @
0f14713d
...
@@ -64,6 +64,16 @@ ifndef ABC_USE_NO_CUDD
...
@@ -64,6 +64,16 @@ ifndef ABC_USE_NO_CUDD
$(info
$(MSG_PREFIX)Compiling
with
CUDD)
$(info
$(MSG_PREFIX)Compiling
with
CUDD)
endif
endif
ABC_READLINE_INCLUDES
?=
ABC_READLINE_LIBRARIES
?=
-lreadline
# whether to use libreadline
ifndef
ABC_USE_NO_READLINE
CFLAGS
+=
-DABC_USE_READLINE
$(ABC_READLINE_INCLUDES)
LIBS
+=
$(ABC_READLINE_LIBRARIES)
$(info
$(MSG_PREFIX)Using
libreadline)
endif
# whether to use libreadline
# whether to use libreadline
ifndef
ABC_USE_NO_READLINE
ifndef
ABC_USE_NO_READLINE
CFLAGS
+=
-DABC_USE_READLINE
CFLAGS
+=
-DABC_USE_READLINE
...
...
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