Skip to content

Commit

Permalink
tiny python cmake tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
KSkwarczynski committed Sep 4, 2024
1 parent 80d98b8 commit b16184a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ add_subdirectory(plotting)

################################# pybind11 stuff ##################################

# EM: If Debug is not defined disable it by default
DefineEnabledRequiredSwitch(MaCh3_PYTHON_ENABLED FALSE)

if( MaCh3_PYTHON_ENABLED )
## EM: make a module target out of all the python*Module.cpp files (currently just one...)
pybind11_add_module(
Expand Down
6 changes: 3 additions & 3 deletions cmake/Modules/MaCh3Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ else()
)
LIST(APPEND MaCh3_Oscillator_ENABLED "CUDAProb3")
endif()

#dump_cmake_variables(Prob3plusplus)


######################### python binding ##########################
# EM: If Debug is not defined disable it by default
DefineEnabledRequiredSwitch(MaCh3_PYTHON_ENABLED FALSE)

if( MaCh3_PYTHON_ENABLED )
set(PYBIND11_FINDPYTHON ON)
Expand All @@ -108,4 +108,4 @@ if( MaCh3_PYTHON_ENABLED )
GITHUB_REPOSITORY "pybind/pybind11"
GIT_TAG v2.13.5
)
endif()
endif()

0 comments on commit b16184a

Please sign in to comment.