Skip to content

Commit

Permalink
Use same compiler for the tests with cmake as with Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
keryell committed Jun 12, 2018
1 parent e4e66db commit b4562f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,14 @@ clone-%:

# Test with cmake/ctest
ctest:
# Think to delete this directory first if full recompilation is required...
mkdir -p ../build
cd ../build; cmake .. -DTRISYCL_OPENCL=ON; make -j7; ctest -j7
cd ../build; cmake .. -DCMAKE_CXX_COMPILER=$(CXX) \
-DTRISYCL_OPENCL=ON; make -j7; ctest -j7

# Only display the test list
ctest-list:
# Think to delete this directory first if full recompilation is required...
mkdir -p ../build
cd ../build; cmake .. -DTRISYCL_OPENCL=ON; \
ctest --show-only | sed -e '1d' -e '/^$$/,$$d' -e 's/.*: //' | sort

0 comments on commit b4562f1

Please sign in to comment.