diff --git a/CMakeLists.txt b/CMakeLists.txt index bf6a0f0..e41a814 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,11 +175,11 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR ### Make specific if(${CMAKE_BUILD_TOOL} MATCHES make OR ${CMAKE_BUILD_TOOL} MATCHES gmake) - add_custom_target(debuggable $(MAKE) clean + add_custom_target(debuggable ${CMAKE_MAKE_PROGRAM} clean COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Debug ${CMAKE_SOURCE_DIR} COMMENT "Adjusting settings for debug compilation" VERBATIM) - add_custom_target(releasable $(MAKE) clean + add_custom_target(releasable ${CMAKE_MAKE_PROGRAM} clean COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR} COMMENT "Adjusting settings for release compilation" VERBATIM)