Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
816ab9f3
Commit
816ab9f3
authored
Jun 29, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for Boost before writing config w/ ASIO
parent
792162c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
CMakeLists.txt
CMakeLists.txt
+16
-9
No files found.
CMakeLists.txt
View file @
816ab9f3
...
...
@@ -256,6 +256,7 @@ if(CAF_LOG_LEVEL)
else
()
set
(
CAF_LOG_LEVEL_INT -1
)
endif
()
macro
(
to_int_value name
)
if
(
${
name
}
)
set
(
${
name
}
_INT 1
)
...
...
@@ -266,7 +267,21 @@ endmacro()
to_int_value
(
CAF_LOG_LEVEL
)
to_int_value
(
CAF_NO_MEM_MANAGEMENT
)
to_int_value
(
CAF_ENABLE_RUNTIME_CHECKS
)
to_int_value
(
CAF_USE_ASIO
)
# find boost asio if the asio multiplexer should be used for testing
if
(
CAF_USE_ASIO
)
set
(
Boost_USE_MULTITHREADED ON
)
find_package
(
Boost COMPONENTS system
)
if
(
Boost_FOUND
)
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
set
(
LD_DIRS
${
LD_DIRS
}
${
Boost_LIBRARIES
}
)
set
(
LD_FLAGS
${
LD_FLAGS
}
${
Boost_SYSTEM_LIBRARY
}
)
set
(
CAF_USE_ASIO_INT 1
)
else
()
set
(
CAF_USE_ASIO no
)
set
(
CAF_USE_ASIO_INT -1
)
endif
()
endif
()
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/build_config.hpp.in"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/libcaf_core/caf/detail/build_config.hpp"
...
...
@@ -452,14 +467,6 @@ endif()
################################################################################
if
(
NOT CAF_NO_UNIT_TESTS
)
# find boost asio if the asio multiplexer should be used for testing
if
(
CAF_USE_ASIO
)
set
(
Boost_USE_MULTITHREADED ON
)
find_package
(
Boost COMPONENTS system REQUIRED
)
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
set
(
LD_DIRS
${
LD_DIRS
}
${
Boost_LIBRARIES
}
)
set
(
LD_FLAGS
${
LD_FLAGS
}
${
Boost_SYSTEM_LIBRARY
}
)
endif
()
# setup unit test binary
add_executable
(
caf-test
libcaf_test/src/caf-test.cpp
...
...
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