Use cmake --build instead of Make

- If possble try to abstract away from Make, and use cmake --build
- third-party still needs to find Make to build some components
- Removed search for Make from CMakeLists.txt
* for CMake < 3.0 --build has no color output
This commit is contained in:
Rui Abreu Ferreira
2014-11-14 14:35:16 +00:00
parent 8da78bc3ae
commit 2b887ec66b
3 changed files with 2 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
execute_process(
COMMAND ${MAKE_PRG} install
COMMAND ${CMAKE_COMMAND} --build . --target install
RESULT_VARIABLE res)
if(NOT res EQUAL 0)