Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
fab14a3c
Commit
fab14a3c
authored
Sep 01, 2017
by
Luca Boccassi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: support for CMake << 3.1 broken
Solution: remove redundant target_sources directive
parent
124e0465
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
CMakeLists.txt
tests/CMakeLists.txt
+15
-12
No files found.
tests/CMakeLists.txt
View file @
fab14a3c
...
...
@@ -147,7 +147,20 @@ link_libraries(libzmq ${OPTIONAL_LIBRARIES})
include_directories
(
"
${
CMAKE_SOURCE_DIR
}
/../include"
)
foreach
(
test
${
tests
}
)
add_executable
(
${
test
}
${
test
}
.cpp
)
# target_sources not supported before CMake 3.1
if
(
ZMQ_HAVE_CURVE AND
${
test
}
MATCHES test_security_curve
)
add_executable
(
${
test
}
${
test
}
.cpp
"../src/tweetnacl.c"
"../src/err.cpp"
"../src/random.cpp"
"../src/clock.cpp"
"testutil_security.hpp"
)
elseif
(
${
test
}
MATCHES test_security_zap
)
add_executable
(
${
test
}
${
test
}
.cpp
"testutil_security.hpp"
)
else
()
add_executable
(
${
test
}
${
test
}
.cpp
)
endif
()
if
(
WIN32
)
# This is the output for Debug dynamic builds on Visual Studio 6.0
# You should provide the correct directory, don't know how to do it automatically
...
...
@@ -179,21 +192,11 @@ if(ZMQ_HAVE_CURVE)
set_tests_properties
(
test_security_curve PROPERTIES TIMEOUT 60
)
endif
()
#add additional required f
ile
s
#add additional required f
lag
s
if
(
ZMQ_HAVE_CURVE
)
target_sources
(
test_security_curve PRIVATE
"../src/tweetnacl.c"
"../src/err.cpp"
"../src/random.cpp"
"../src/clock.cpp"
"testutil_security.hpp"
)
target_compile_definitions
(
test_security_curve PRIVATE
"-DZMQ_USE_TWEETNACL"
)
endif
()
target_sources
(
test_security_zap PRIVATE
"testutil_security.hpp"
)
set_tests_properties
(
test_security_zap PROPERTIES TIMEOUT 60
)
#Check whether all tests in the current folder are present
...
...
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