changing the default prefix (install path) to be <source_dir>/install to workaround the "build/*" filter in the AP

This is also better since we support installing different configuraitons/platforms in the same prefix
This commit is contained in:
pappeste
2021-05-05 12:08:55 -07:00
parent 7c9837dfd4
commit 412bf67772
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -4,6 +4,7 @@ __pycache__
AssetProcessorTemp/**
[Bb]uild/**
[Cc]ache/
install/
Editor/EditorEventLog.xml
Editor/EditorLayout.xml
**/*egg-info/**
+5 -1
View File
@@ -13,4 +13,8 @@
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib CACHE PATH "Build directory for static libraries and import libraries")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin CACHE PATH "Build directory for shared libraries")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin CACHE PATH "Build directory for executables")
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "Installation prefix")
# We install outside of the binary dir because our install support muliple platforms to
# be installed together. We also have an exclusion rule in the AP that filters out the
# "build" folder which is a common binary dir
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install CACHE PATH "Installation prefix")