Skip to content

Commit 768a304

Browse files
authored
Merge pull request #605 from dash-project/dash-release0.3.0-prep
Last preparations for 0.3.0
2 parents aba546d + 1b7be01 commit 768a304

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

CMakeExt/CompilerFlags.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ if (ENABLE_DEV_COMPILER_WARNINGS
137137
endif()
138138
endif()
139139

140+
if (NOT (ENABLE_DEV_COMPILER_WARNINGS
141+
OR ENABLE_EXT_COMPILER_WARNINGS)
142+
AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Cray")
143+
set(CMAKE_C_FLAGS
144+
"${CMAKE_C_FLAGS} -Wno-format")
145+
endif()
146+
140147
set (CXX_GDB_FLAG "-g"
141148
CACHE STRING "C++ compiler (clang++) debug symbols flag")
142149
if(OPENMP_FOUND)

CMakeExt/GoogleTest.cmake

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ if (BUILD_TESTS)
4848

4949
else()
5050
# Download gtest from official github repository:
51-
message(STATUS "GoogleTest: using GTest from official repository")
5251
set(GTEST_SUBMOD "${CMAKE_SOURCE_DIR}/vendor/googletest")
5352
set(GTEST_PREFIX "${CMAKE_BINARY_DIR}/gtest")
5453
set(GTEST_LOCATION "${GTEST_PREFIX}/src/GTestExternal-build/googlemock/gtest")
@@ -57,21 +56,24 @@ if (BUILD_TESTS)
5756
set(GTEST_MAINLIB "${GTEST_LOCATION}/${LIBPREFIX}gtest_main${LIBSUFFIX}")
5857

5958
# check whether the submodule has been initialized
60-
file(GLOB gtest_files "${GTEST_SUBMOD}/*")
61-
list(LENGTH gtest_files gtest_file_cnt)
59+
file(GLOB gtest_files "${GTEST_SUBMOD}/*")
60+
list(LENGTH gtest_files gtest_file_cnt)
6261
set (git_res 0)
6362
if (gtest_file_cnt EQUAL 0)
6463
# we first need to initialize the submodule
65-
message(STATUS "GoogleTest: Fetching submodule into vendor/googletest")
66-
execute_process(COMMAND git submodule update --init vendor/googletest
64+
message(STATUS "GoogleTest: using GTest from official repository")
65+
message(STATUS "GoogleTest: Fetching submodule into ${GTEST_SUBMOD}")
66+
execute_process(COMMAND git submodule update --init ${GTEST_SUBMOD}
6767
TIMEOUT 10
6868
RESULT_VARIABLE git_res
6969
OUTPUT_VARIABLE git_out
7070
ERROR_VARIABLE git_err
7171
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
7272
endif()
7373

74-
if (git_res EQUAL 0)
74+
file(GLOB gtest_git_files "${GTEST_SUBMOD}/.git*")
75+
list(LENGTH gtest_git_files gtest_git_file_cnt)
76+
if (NOT gtest_git_file_cnt EQUAL 0 AND git_res EQUAL 0)
7577
# checkout desired version
7678
message(STATUS "GoogleTest: Checking out commit ${GTEST_GIT_TAG}")
7779
execute_process(COMMAND git checkout -q ${GTEST_GIT_TAG}
@@ -82,7 +84,7 @@ if (BUILD_TESTS)
8284
if (NOT git_res EQUAL 0)
8385
# try to fetch latest commit from origin
8486
message(STATUS "GoogleTest: Checkout failed, trying to fetch latest commit")
85-
execute_process(COMMAND git submodule update --remote vendor/googletest
87+
execute_process(COMMAND git submodule update --remote ${GTEST_SUBMOD}
8688
TIMEOUT 10
8789
RESULT_VARIABLE git_res
8890
OUTPUT_VARIABLE git_out
@@ -100,6 +102,8 @@ if (BUILD_TESTS)
100102
message(WARNING "GoogleTest: Failed to checkout commit ${GTEST_GIT_TAG}: ${git_err}")
101103
endif()
102104
endif()
105+
elseif (NOT gtest_file_cnt EQUAL 0)
106+
message(STATUS "GoogleTest: using GTest available in ${GTEST_SUBMOD}")
103107
endif()
104108

105109

release.pl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,16 @@
126126
# DASH scripts
127127
#
128128
"dash/scripts/*.sh",
129-
"dash/scripts/dashcc/*.in",
130-
#
129+
"dash/scripts/dashcc/*.in",
130+
#
131131
# Documentation
132132
#
133133
"doc/config/*.dox",
134-
"doc/config/*.in"
134+
"doc/config/*.in",
135+
#
136+
# GoogleTest
137+
#
138+
"vendor/googletest/*"
135139
);
136140

137141

@@ -149,7 +153,7 @@
149153
if( $file =~ /\.(c|h|cc|cpp)$/ && -e "LICENSE" ) {
150154
system("cat ./LICENSE $file > $base/$file");
151155
} else {
152-
system("cp $file $dirname");
156+
system("cp -r $file $dirname");
153157
}
154158
}
155159
}

0 commit comments

Comments
 (0)