diff options
| author | AltoXorg <56553686+Alto1772@users.noreply.github.com> | 2023-08-16 08:26:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 19:26:23 -0500 |
| commit | 6923c2d3c0d4200c34d9c65d03e996b24289406a (patch) | |
| tree | 50ad9a7f6c0fdc94d420991530892263c27f7162 /copy-existing-otrs.cmake | |
| parent | 74d6678543417e5b26924480a41f3d237294d71f (diff) | |
Opt-in for an easy-way CMake target to create soh.otr file (#3057)
* use a convenient cmake target for gen soh otr
* Update generate-builds.yml
* Apply for all conditions
* grandma change
Diffstat (limited to 'copy-existing-otrs.cmake')
| -rw-r--r-- | copy-existing-otrs.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/copy-existing-otrs.cmake b/copy-existing-otrs.cmake index aa4b739cc..f5226510c 100644 --- a/copy-existing-otrs.cmake +++ b/copy-existing-otrs.cmake @@ -1,11 +1,11 @@ message(STATUS "Copying otr files...") -if(EXISTS ${SOURCE_DIR}/OTRExporter/oot.otr) +if(NOT ONLYSOHOTR AND EXISTS ${SOURCE_DIR}/OTRExporter/oot.otr) execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot.otr ${SOURCE_DIR}) execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot.otr ${BINARY_DIR}/soh/) message(STATUS "Copied oot.otr") endif() -if(EXISTS ${SOURCE_DIR}/OTRExporter/oot-mq.otr) +if(NOT ONLYSOHOTR AND EXISTS ${SOURCE_DIR}/OTRExporter/oot-mq.otr) execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot-mq.otr ${SOURCE_DIR}) execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot-mq.otr ${BINARY_DIR}/soh/) message(STATUS "Copied oot-mq.otr") @@ -18,10 +18,10 @@ endif() # Additionally for Windows, copy the otrs to the target dir, side by side with soh.exe if(SYSTEM_NAME MATCHES "Windows") - if(EXISTS ${SOURCE_DIR}/OTRExporter/oot.otr) + if(NOT ONLYSOHOTR AND EXISTS ${SOURCE_DIR}/OTRExporter/oot.otr) execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot.otr ${TARGET_DIR}) endif() - if(EXISTS ${SOURCE_DIR}/OTRExporter/oot-mq.otr) + if(NOT ONLYSOHOTR AND EXISTS ${SOURCE_DIR}/OTRExporter/oot-mq.otr) execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot-mq.otr ${TARGET_DIR}) endif() if(EXISTS ${SOURCE_DIR}/OTRExporter/soh.otr) @@ -29,7 +29,7 @@ if(SYSTEM_NAME MATCHES "Windows") endif() endif() -if(NOT EXISTS ${SOURCE_DIR}/oot.otr AND NOT EXISTS ${SOURCE_DIR}/oot-mq.otr) +if(NOT ONLYSOHOTR AND (NOT EXISTS ${SOURCE_DIR}/oot.otr AND NOT EXISTS ${SOURCE_DIR}/oot-mq.otr)) message(FATAL_ERROR "Failed to copy. No OTR files found.") endif() if(NOT EXISTS ${SOURCE_DIR}/soh.otr) |
