Skip to content

Commit

Permalink
Hack for cross-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Jul 6, 2024
1 parent c0bce58 commit 8bc9200
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmake/toolchains/mingw64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ set(HDFVIEW "nexpy")
# gsl and xraylib locations
set(GSLFLAGS "-IGETPATH(../miniconda3/Library/include/) -Wl,-rpath,GETPATH(../miniconda3/Library/lib) -LGETPATH(../miniconda3/Library/lib) -lgsl -lgslcblas")
set(XRLFLAGS "-IGETPATH(../miniconda3/Library/include/) -Wl,-rpath,GETPATH(../miniconda3/Library/lib) -LGETPATH(../miniconda3/Library/lib) -lxrl")

# In cross-compile, use bare npm command
set(NPM "npm")
4 changes: 3 additions & 1 deletion tools/Python/mcdisplay/webgl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/package.json" "${WORK}/package.json"

# Run npm to install project
if (WINDOWS)
set(NPM "npm.cmd")
if(NOT NPM)
set(NPM "npm.cmd")
endif()
else()
set(NPM "npm")
endif()
Expand Down

0 comments on commit 8bc9200

Please sign in to comment.