Skip to content

Commit

Permalink
MKDOCS: Use specified python executable to run mkdocs (#923)
Browse files Browse the repository at this point in the history
This fixes an issue with macOS Catalina but probably breaks all the other builds

Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information
imikejackson committed Nov 25, 2019
1 parent 744a183 commit e865f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Documentation/ReferenceManual/CMakeLists.txt
Expand Up @@ -162,7 +162,8 @@ if(SIMPL_USE_MKDOCS)


if(APPLE) if(APPLE)
set(MKDOCS_EXECUTABLE_SCRIPT "${DREAM3DDocRoot}/ReferenceManual/mkdocs") set(MKDOCS_EXECUTABLE_SCRIPT "${DREAM3DDocRoot}/ReferenceManual/mkdocs")
file(WRITE "${MKDOCS_EXECUTABLE_SCRIPT}" "#!/usr/bin/python\n") #file(WRITE "${MKDOCS_EXECUTABLE_SCRIPT}" "#!/usr/bin/python\n")
file(WRITE "${MKDOCS_EXECUTABLE_SCRIPT}" "#!${PYTHON_EXECUTABLE}\n")
file(APPEND "${MKDOCS_EXECUTABLE_SCRIPT}" "# -*- coding: utf-8 -*-\n") file(APPEND "${MKDOCS_EXECUTABLE_SCRIPT}" "# -*- coding: utf-8 -*-\n")
file(APPEND "${MKDOCS_EXECUTABLE_SCRIPT}" "# This script is generated automatically from CMake for macOS systems to get the encoding correct.\n") file(APPEND "${MKDOCS_EXECUTABLE_SCRIPT}" "# This script is generated automatically from CMake for macOS systems to get the encoding correct.\n")
file(APPEND "${MKDOCS_EXECUTABLE_SCRIPT}" "# Generated in code from ${CMAKE_CURRENT_LIST_FILE}\n") file(APPEND "${MKDOCS_EXECUTABLE_SCRIPT}" "# Generated in code from ${CMAKE_CURRENT_LIST_FILE}\n")
Expand Down

0 comments on commit e865f71

Please sign in to comment.