Skip to content

Commit 6082a9a

Browse files
committed
DHAVE_SNPRINTF
1 parent d6bdee5 commit 6082a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ find_package(PDAL 2.4 REQUIRED)
2121
function(pdal_python_target_compile_settings target)
2222
set_property(TARGET ${target} PROPERTY CXX_STANDARD 11)
2323
set_property(TARGET ${target} PROPERTY CXX_STANDARD_REQUIRED TRUE)
24-
target_compile_definitions(${target} PRIVATE
25-
-DWIN32_LEAN_AND_MEAN)
2624
if (MSVC)
2725
# check for MSVC 8+
2826
if (NOT (MSVC_VERSION VERSION_LESS 1400))
@@ -31,6 +29,8 @@ function(pdal_python_target_compile_settings target)
3129
-D_CRT_SECURE_NO_WARNINGS
3230
-D_CRT_NONSTDC_NO_WARNING
3331
-D_SCL_SECURE_NO_WARNINGS
32+
-DWIN32_LEAN_AND_MEAN
33+
-DDHAVE_SNPRINTF
3434
)
3535
target_compile_options(${target} PRIVATE
3636
# Yes, we don't understand GCC pragmas

0 commit comments

Comments
 (0)