Skip to content

Commit cdc34ab

Browse files
committed
Debug
1 parent 1adcab9 commit cdc34ab

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

CMakeLists.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -518,30 +518,6 @@ if(INSTALL_PYTHON_DEPENDENCIES)
518518
endif()
519519
endif()
520520

521-
522-
523-
# Configure the setup script
524-
# Pass PYTHON_SCRIPTS_INSTALL_SUBDIR to the template if scripts are being installed.
525-
# The @ONLY flag means only variables like @VAR@ or ${VAR} are replaced.
526-
# If setup.sh.in uses shell variables like $VAR or ${VAR}, they will be preserved.
527-
if(INSTALL_PYTHON_SCRIPTS)
528-
set(CONFIGURE_SETUP_SH_DEFINES "-DPYTHON_SCRIPTS_INSTALL_SUBDIR=\\"python_scripts\\"")
529-
# The above define isn't used by configure_file directly with @ONLY unless setup.sh.in uses #cmakedefine
530-
# Instead, we ensure PYTHON_SCRIPTS_INSTALL_SUBDIR is a normal CMake variable available during configure_file.
531-
# It's already set if INSTALL_PYTHON_SCRIPTS is true.
532-
endif()
533-
534-
configure_file(
535-
"${SETUP_SH_TEMPLATE}" # Input: cmake/templates/setup.sh.in
536-
"${SETUP_SH_OUTPUT}" # Output: ${CMAKE_BINARY_DIR}/setup.sh
537-
@ONLY # Replace @CMAKE_INSTALL_PREFIX@, @PYTHON_SCRIPTS_INSTALL_SUBDIR@, etc.
538-
)
539-
540-
# Install the configured setup.sh script to the installation's bin directory
541-
install(PROGRAMS "${SETUP_SH_OUTPUT}" DESTINATION "${MIDAS_INSTALL_BINDIR}")
542-
543-
message(STATUS "Configured top-level setup.sh, will be installed to ${MIDAS_INSTALL_BINDIR}")
544-
545521
# --- Summary Message ---
546522
message(STATUS "")
547523
message(STATUS "MIDAS Project Configuration Summary")

0 commit comments

Comments
 (0)