diff --git a/Applications/Python/CMakeLists.txt b/Applications/Python/CMakeLists.txt index 6d0f1171608e95695f8409269bebcdceebae3b77..b15a9c06c75e03115408a2ca424629dd062a62d3 100644 --- a/Applications/Python/CMakeLists.txt +++ b/Applications/Python/CMakeLists.txt @@ -11,12 +11,14 @@ endif() add_subdirectory(ogs) add_subdirectory(ogs.simulator) add_subdirectory(ogs.mesh) -add_subdirectory(ogs.callbacks) +if(OGS_BUILD_WHEEL) + add_subdirectory(ogs.callbacks) +endif() if(OGS_USE_PIP) set_target_properties( - simulator mesh callbacks PROPERTIES LIBRARY_OUTPUT_DIRECTORY - ${_py_build_location} + simulator mesh PROPERTIES LIBRARY_OUTPUT_DIRECTORY + ${_py_build_location} ) file( COPY ogs/.