-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KDTree now compiles with MS VC 2005 with the 64 bit warnings turned o…
…n (the cmake config sets this up). The size type (size_t) has been switched to KDTREE_SIZE_T, a #define that can be overridden. By default it is size_t (the standard across STL containers). Signed-off-by: Paul Harris <[email protected]>
- Loading branch information
1 parent
dfdd353
commit 12f4e61
Showing
10 changed files
with
120 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
project (libkdtree CXX) | ||
cmake_minimum_required (VERSION 2.6.0) | ||
|
||
if (WIN32) | ||
|
||
# Maximum warning level | ||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4") | ||
|
||
# Be strict about warnings... make them errors | ||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX") | ||
|
||
# Detect 64-bit portability issues | ||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Wp64") | ||
|
||
else (WIN32) | ||
|
||
# Maximum warning level | ||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Wall") | ||
|
||
endif (WIN32) | ||
|
||
include_directories (${PROJECT_SOURCE_DIR}) | ||
|
||
add_subdirectory(examples) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
#include <cstddef> | ||
|
||
#include <kdtree++/node.hpp> | ||
#include "node.hpp" | ||
|
||
namespace KDTree | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.