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
7b686900
Commit
7b686900
authored
May 24, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: VS2008 build fails due to unavailable stdint.h
Solution: specify not to use stdint.h for VS<=2008, fixes #3025
parent
1e89a517
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
CMakeLists.txt
tests/CMakeLists.txt
+5
-1
No files found.
tests/CMakeLists.txt
View file @
7b686900
...
...
@@ -153,13 +153,17 @@ add_library (unity
"
${
CMAKE_CURRENT_LIST_DIR
}
/../external/unity/unity_internals.h"
)
set_target_properties
(
unity PROPERTIES
PUBLIC_HEADER
"
${
CMAKE_CURRENT_LIST_DIR
}
/../external/unity/unity.h"
)
target_compile_definitions
(
unity PUBLIC
"UNITY_USE_COMMAND_LINE_ARGS"
"UNITY_EXCLUDE_FLOAT"
)
target_compile_definitions
(
unity PUBLIC
"UNITY_USE_COMMAND_LINE_ARGS"
"UNITY_EXCLUDE_FLOAT"
)
target_include_directories
(
unity PUBLIC
"
${
CMAKE_CURRENT_LIST_DIR
}
/../external/unity"
)
IF
(
MSVC_VERSION LESS 1700
)
SET_SOURCE_FILES_PROPERTIES
(
"
${
CMAKE_CURRENT_LIST_DIR
}
/../external/unity/unity.c"
PROPERTIES LANGUAGE CXX
)
ENDIF
()
IF
(
MSVC_VERSION LESS 1600
)
target_compile_definitions
(
unity PUBLIC
"UNITY_EXCLUDE_STDINT_H"
)
ENDIF
()
# add library and include dirs for all targets
if
(
BUILD_SHARED
)
link_libraries
(
libzmq
${
OPTIONAL_LIBRARIES
}
${
CMAKE_THREAD_LIBS_INIT
}
unity
)
...
...
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