Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
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
rapidjson
Commits
122170b3
Commit
122170b3
authored
Feb 19, 2015
by
Andrii Senkovych
Committed by
Andriy Senkovych
Feb 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix definitions for VS compiler
parent
553dc0a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
CMakeLists.txt
example/CMakeLists.txt
+1
-1
CMakeLists.txt
test/unittest/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
122170b3
...
...
@@ -28,7 +28,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
elseif
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-march=native -Wall -Wextra"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MSVC"
)
add_definitions
(
_CRT_SECURE_NO_WARNINGS
)
add_definitions
(
-D_CRT_SECURE_NO_WARNINGS=1
)
endif
()
#add extra search paths for libraries and includes
...
...
example/CMakeLists.txt
View file @
122170b3
...
...
@@ -19,7 +19,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
elseif
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Werror -Wall -Wextra -Weffc++ -Wswitch-default"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MSVC"
)
add_definitions
(
_CRT_SECURE_NO_WARNINGS
)
add_definitions
(
-D_CRT_SECURE_NO_WARNINGS=1
)
endif
()
foreach
(
example
${
EXAMPLES
}
)
...
...
test/unittest/CMakeLists.txt
View file @
122170b3
...
...
@@ -18,7 +18,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
elseif
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Werror -Weffc++ -Wswitch-default"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MSVC"
)
add_definitions
(
_CRT_SECURE_NO_WARNINGS
)
add_definitions
(
-D_CRT_SECURE_NO_WARNINGS=1
)
endif
()
add_library
(
namespacetest STATIC namespacetest.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