diff --git a/CMakeLists.txt b/CMakeLists.txt index 94fa60e41..1be55a38a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -368,5 +368,5 @@ add_custom_command(TARGET postbuild POST_BUILD COMMAND cmake .) # strip binaries in release mode if (CMAKE_BUILD_TYPE MATCHES Release) message(STATUS "stripping binaries...") - add_custom_command(TARGET postbuild POST_BUILD COMMAND ./strip-nix.sh) + add_custom_command(TARGET postbuild POST_BUILD COMMAND "${CMAKE_CURRENT_BINARY_DIR}/strip-nix.sh") endif()