diff --git a/script/max-pretarget.cmake b/script/max-pretarget.cmake index f7a65cb..89a8e55 100644 --- a/script/max-pretarget.cmake +++ b/script/max-pretarget.cmake @@ -62,7 +62,9 @@ if (APPLE) set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING "Minimum OS X deployment version" FORCE) endif () -if (NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY) +if (DEFINED C74_LIBRARY_OUTPUT_DIRECTORY) + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${C74_LIBRARY_OUTPUT_DIRECTORY}") +else () if (NOT DEFINED C74_BUILD_MAX_EXTENSION) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../externals") else ()