Skip to content

Commit

Permalink
CIBW...
Browse files Browse the repository at this point in the history
  • Loading branch information
vegardjervell committed Jul 25, 2024
1 parent 19d2a6f commit 1cb87d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
CIBW_BUILD_VERBOSITY_WINDOWS: 2
CIBW_SKIP: "*pypy* *pp* *cp36* *cp37* *musl*"
with:
package-dir: "addon/pycThermopack"
package-dir: "./addon/pycThermopack"
output-dir: "./wheelhouse"
config-file: "{package}/pyproject.toml"

Expand Down
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ else()
set(tp_fortran_flags ${tp_optim_flags})
endif()

add_subdirectory("${CMAKE_SOURCE_DIR}/src" "thermopack")
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src "thermopack")

option(test "Build test suite" OFF)
if(test)
cmake_policy(SET CMP0074 NEW)
find_package(PFUNIT QUIET)
if (NOT PFUNIT_FOUND)
message("${ColorRed}Did not find pFUnit, building from source. If you have installed pFUnit, make sure that PFUNIT_DIR is set.")
add_subdirectory(${CMAKE_SOURCE_DIR}/external/pFUnit)
message("${ColorRed}Did not find pFUnit. If you have installed pFUnit, make sure that PFUNIT_DIR is set. Falling back to building pFUnit from source...")
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/external/pFUnit)
endif()
message("${ColorBlue}Creating run_unittests target")
add_subdirectory("${CMAKE_SOURCE_DIR}/unittests")
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/unittests)
endif()
4 changes: 4 additions & 0 deletions addon/pycThermopack/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cmake_minimum_required(VERSION 3.2)
project(pycThermoPack LANGUAGES Fortran)

add_subdirectory(${CMAKE_SOURCE_DIR}/../.. "thermopack")

0 comments on commit 1cb87d4

Please sign in to comment.