Skip to content

Commit

Permalink
use C74_LIBRARY_OUTPUT_DIRECTORY rather than the CMAKE_LIBRARY_OUTPUT…
Browse files Browse the repository at this point in the history
…_DIRECTORY variable to specify an alternative library directory to prevent inadvertent setting by a higher-level cmake script
  • Loading branch information
jeremybernstein committed Aug 19, 2021
1 parent ed61884 commit 9d7efd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/max-pretarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

1 comment on commit 9d7efd3

@roru78
Copy link

@roru78 roru78 commented on 9d7efd3 Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

)

Please sign in to comment.