Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
pinocchio
Commits
ce31b402
Commit
ce31b402
authored
Oct 13, 2021
by
Joseph Mirabel
Browse files
[CMake] Use NOMINMAX compilation flag on Windows.
parent
2720c6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
unittest/python/pybind11/CMakeLists.txt
View file @
ce31b402
...
...
@@ -15,5 +15,9 @@ if(CMAKE_VERSION VERSION_GREATER 3.11)
message
(
STATUS
"CXX_STANDARD for cpp2pybind11 set changed from
${
CMAKE_CXX_STANDARD
}
to 14"
)
set_target_properties
(
cpp2pybind11 PROPERTIES CXX_STANDARD 14
)
endif
()
if
(
WIN32
)
target_compile_definitions
(
cpp2pybind11 PRIVATE -DNOMINMAX
)
endif
(
WIN32
)
endif
()
endif
()
Write
Preview
Supports
Markdown
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