Skip to content

Commit

Permalink
Fix gcc32bit compilation.
Browse files Browse the repository at this point in the history
Push BUILD_INTERNAL_UNIT_TESTS to the precompiler definitions
Minor adjustments
  • Loading branch information
ev-mp committed Aug 26, 2019
1 parent 2123f40 commit ee0e499
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CMake/global_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ macro(global_set_flags)
add_definitions(-DRS2_USE_CUDA)
endif()

if (BUILD_INTERNAL_UNIT_TESTS)
add_definitions(-DBUILD_INTERNAL_UNIT_TESTS)
endif()

if(FORCE_LIBUVC)
set(BACKEND RS2_USE_LIBUVC_BACKEND)
message(STATUS "Using libuvc (by force)")
Expand Down
1 change: 1 addition & 0 deletions common/tiny-profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <unordered_map>
#include <chrono>
#include <iostream>
#include <cstring> // strlen

class scoped_timer
{
Expand Down
2 changes: 1 addition & 1 deletion unit-tests/internal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set (INTERNAL_TESTS_SOURCES
internal-tests-main.cpp
internal-tests-usb.cpp
internal-tests-extrinsic.cpp
internal-tests-types.cpp
internal-tests-types.cpp
)

add_executable(${PROJECT_NAME} ${INTERNAL_TESTS_SOURCES})
Expand Down
2 changes: 1 addition & 1 deletion unit-tests/internal/internal-tests-types.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.

#include "catch/catch.hpp"
#include <cmath>
Expand Down

0 comments on commit ee0e499

Please sign in to comment.