Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
c2eeb69d
Commit
c2eeb69d
authored
Sep 28, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optional static libs boost
parent
90c967c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
CMakeLists.txt
+3
-11
No files found.
CMakeLists.txt
View file @
c2eeb69d
...
...
@@ -177,7 +177,9 @@ set(THREADS_PREFER_PTHREAD_FLAG)
find_package
(
Threads
)
set
(
Boost_DETAILED_FAILURE_MSG ON
)
# set(Boost_USE_STATIC_LIBS ON)
if
(
NOT BUILD_SHARED_LIBS
)
set
(
Boost_USE_STATIC_LIBS ON
)
endif
()
find_package
(
Boost 1.70.0 REQUIRED COMPONENTS system iostreams regex date_time program_options OPTIONAL_COMPONENTS zlib
)
# Create a revision file, containing the current git version info
...
...
@@ -404,16 +406,6 @@ set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set
(
libdir
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_LIBDIR
}
)
set
(
includedir
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_INCLUDEDIR
}
)
get_target_property
(
PRIVATE_LIBRARIES cifpp INTERFACE_LINK_LIBRARIES
)
foreach
(
LIB
${
PRIVATE_LIBRARIES
}
)
set
(
PRIVATE_LIBS
"
${
PRIVATE_LIBS
}
-l
${
LIB
}
"
)
endforeach
()
get_target_property
(
PRIVATE_INCLUDE_DIRS cifpp INTERFACE_INCLUDE_DIRECTORIES
)
foreach
(
INC
${
PRIVATE_INCLUDE_DIRS
}
)
set
(
PRIVATE_INC_DIRS
"
${
PRIVATE_INC_DIRS
}
-I
${
INC
}
"
)
endforeach
()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/libcifpp.pc.in
${
CMAKE_CURRENT_BINARY_DIR
}
/libcifpp.pc.in @ONLY
)
file
(
GENERATE OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/libcifpp.pc
...
...
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