diff --git a/CMakeLists.txt b/CMakeLists.txt index 1be55a38a..e2b36742e 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 "${CMAKE_CURRENT_BINARY_DIR}/strip-nix.sh") + add_custom_command(TARGET postbuild POST_BUILD COMMAND "${CMAKE_SOURCE_DIR}/strip-nix.sh") endif()