Skip to content

Commit 27109df

Browse files
authored
Merge pull request #211 from OpenShot/rename-cmake-test
Fix cmake 3 error for `make test`
2 parents d3cd4f3 + 6e7b989 commit 27109df

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ matrix:
1515
- mkdir -p build; cd build;
1616
- cmake -D"CMAKE_BUILD_TYPE:STRING=Debug" ../
1717
- make VERBOSE=1
18-
- make test
18+
- make os_test
1919

2020
- language: cpp
2121
name: "FFmpeg 3"
@@ -30,7 +30,7 @@ matrix:
3030
- mkdir -p build; cd build;
3131
- cmake -D"CMAKE_BUILD_TYPE:STRING=Debug" ../
3232
- make VERBOSE=1
33-
- make test
33+
- make os_test
3434

3535
- language: cpp
3636
name: "FFmpeg 4"
@@ -47,4 +47,4 @@ matrix:
4747
- mkdir -p build; cd build;
4848
- cmake -D"CMAKE_BUILD_TYPE:STRING=Debug" ../
4949
- make VERBOSE=1
50-
- make test
50+
- make os_test

tests/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ IF (NOT DISABLE_TESTS)
224224
# Link libraries to the new executable
225225
target_link_libraries(openshot-test openshot ${UNITTEST++_LIBRARY})
226226

227-
228227
#################### MAKE TEST ######################
229-
# Hook up the 'make test' target to the 'openshot-test' executable
230-
ADD_CUSTOM_TARGET(test ${CMAKE_CURRENT_BINARY_DIR}/openshot-test)
228+
# Hook up the 'make os_test' target to the 'openshot-test' executable
229+
ADD_CUSTOM_TARGET(os_test ${CMAKE_CURRENT_BINARY_DIR}/openshot-test)
231230
ENDIF (NOT DISABLE_TESTS)

0 commit comments

Comments
 (0)