diff --git a/CMakeLists.txt b/CMakeLists.txt index 5697f87..0793b24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,6 +230,6 @@ add_custom_command_if( TARGET ${PROJECT_NAME} POST_BUILD COMMANDS - COMMAND cp "$/Release/libasexthook.so" "$/../build/addons/metamod/dlls/" + COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/Release/libasexthook.so" "${CMAKE_CURRENT_SOURCE_DIR}/../build/addons/metamod/dlls/" )