Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 19, 2015
2 parents 886d01c + d49efb7 commit a3c29c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
4 changes: 4 additions & 0 deletions cmake/compiler_options.cmake
Expand Up @@ -4,6 +4,10 @@ include_directories(${PDAL_SRC_DIR})
include_directories(${PDAL_IO_DIR})
include_directories(${PDAL_KERNEL_DIR})
include_directories(${PDAL_FILTER_DIR})

set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE)

if (WIN32)
include (${CMAKE_CURRENT_LIST_DIR}/win32_compiler_options.cmake)
else()
Expand Down
9 changes: 0 additions & 9 deletions cmake/win32_compiler_options.cmake
Expand Up @@ -68,15 +68,6 @@ if (MSVC)
endif(MSVC)
add_definitions(-DWIN32_LEAN_AND_MEAN)

# note we default to debug mode
#if(NOT MSVC_IDE)
# if(NOT CMAKE_BUILD_TYPE)
# set(CMAKE_BUILD_TYPE Debug CACHE STRING
# "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE)
# endif()
# message(STATUS "Setting PDAL build type - ${CMAKE_BUILD_TYPE}")
#endif()

set(CMAKE_INCLUDE_PATH "c:/OSGeo4W64/include;$ENV{CMAKE_INCLUDE_PATH}")
set(CMAKE_LIBRARY_PATH "c:/OSGeo4W64/lib;$ENV{CMAKE_LIBRARY_PATH}")
set(CMAKE_PREFIX_PATH "c:/OSGeo4W64/cmake;$ENV{CMAKE_LIBRARY_PATH}")
Expand Down
9 changes: 5 additions & 4 deletions src/Kernel.cpp
Expand Up @@ -239,10 +239,11 @@ void Kernel::collectExtraOptions()
option_split.push_back(boost::lexical_cast<std::string>(ti));
if (!(option_split.size() == 2))
{
std::ostringstream oss;
oss << "option '" << o << "' did not split correctly. Is it "
"in the form --readers.las.option=foo?";
throw app_usage_error(oss.str());
// std::ostringstream oss;
// oss << "option '" << o << "' did not split correctly. Is it "
// "in the form --readers.las.option=foo?";
// throw app_usage_error(oss.str());
continue;
}

std::string option_value(option_split[1]);
Expand Down

0 comments on commit a3c29c2

Please sign in to comment.