Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Commit ff8be85

Browse files
Jon LittleBryan Parsons
authored andcommitted
Issue 364
1 parent 4b237b9 commit ff8be85

File tree

396 files changed

+36
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

396 files changed

+36
-102
lines changed

.gitlab-ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,19 @@ test_core:
145145
script:
146146
- cd build
147147
- ctest -j 4
148-
- cd ..
148+
#- cd ..
149149
# Execute once to get the tabular output (which we can scrape for gitlab)
150-
- echo $PWD
151-
- gcovr --object-directory=build/core/tests/ORD/CMakeFiles/OrdUnitTests_T.dir -r . -e .*_T.cpp
150+
#- echo $PWD
151+
#- gcovr --object-directory=build/core/tests/ORD/CMakeFiles/OrdUnitTests_T.dir -r . -e .*_T.cpp
152152
# Execute again, generating html
153-
- mkdir gcovr
154-
- gcovr --object-directory=build/core/tests/ORD/CMakeFiles/OrdUnitTests_T.dir --html --html-details -o gcovr/index.html -r . -e .*_T.cpp
153+
#- mkdir gcovr
154+
#- gcovr --object-directory=build/core/tests/ORD/CMakeFiles/OrdUnitTests_T.dir --html --html-details -o gcovr/index.html -r . -e .*_T.cpp
155155
dependencies:
156156
- build_core
157-
artifacts:
158-
paths:
159-
- gcovr
160-
expire_in: 2 days
157+
#artifacts:
158+
# paths:
159+
# - gcovr
160+
# expire_in: 2 days
161161

162162
# Deploy Stage
163163
# Tests install of GPSTk on each platform, saves artifacts for downstream builds.

BuildSetup.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ elseif( WIN32 )
1313
set( STADYN "STATIC" )
1414
endif()
1515

16+
1617
#----------------------------------------
1718
# Platform-dependent Compiler flags
1819
#----------------------------------------
@@ -33,6 +34,7 @@ elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
3334
set( CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS} -O2" )
3435
elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
3536
# Do not optimize for debug builds. Do the same for RELWITHDEBINFO ?
37+
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
3638
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O2" )
3739
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS} -O2" )
3840
set( CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS} -O2" )
@@ -78,7 +80,6 @@ endif()
7880
#----------------------------------------
7981

8082
if( USE_RPATH )
81-
8283
# Use, i.e. don't skip the full RPATH for the build tree
8384
set( CMAKE_SKIP_BUILD_RPATH FALSE )
8485

core/tests/FileHandling/FFBinaryStream_T.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ testStream(const std::string& outfn, const std::string& reffn,
267267
#ifdef WIN32
268268
testFramework.assert(bool(testStrmIn), "Couldn't open " + outfn + " for input", __LINE__);
269269
#else
270-
testFramework.assert(testStrmIn, "Couldn't open " + outfn + " for input", __LINE__);
270+
testFramework.assert(static_cast<bool>(testStrmIn), "Couldn't open " + outfn + " for input", __LINE__);
271271
#endif
272272

273273
// check file size

core/tests/ORD/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11

2-
message( STATUS "Setting CMAKE_CURRENT_SOURCE_DIR = ${CMAKE_CURRENT_SOURCE_DIR}" )
3-
42
# --- Here's the existing CMake method
53

64
# /usr/lib64/libgmock.so
75
find_path(GMOCK_SOURCE_DIR NAMES src/gmock.cc CMakeLists.txt
8-
PATHS /usr/src/gmock /usr/local/src/gmock)
6+
PATHS /usr/src/gmock /usr/local/src/gmock /usr/src/googletest/googlemock)
97
find_path(GMOCK_INCLUDE_DIR NAMES gmock.h
108
PATHS /usr/include/gmock /usr/local/include/gmock)
119

1210
# If we can't locate the INCLUDE directory, just give up.
13-
if ( GMOCK_INCLUDE_DIR )
11+
if ( EXISTS ${GMOCK_INCLUDE_DIR}/CMakeLists.txt )
1412
# On Debian, gtest/gmock source is installed so it must be compiled.
1513
# On RedHat shared libraries are installed in standard locations.
1614
# MacOSX TBD

0 commit comments

Comments
 (0)