diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bda8b129736155d7d54aba6a78a6b941aa8f08b..5433d9eba20e938fe33eb089577fcf80ad5ccf45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,8 +63,11 @@ add_compile_options (-fstrict-aliasing) option (WILL_BUILD_STATIC_LIBRARY "Building static library" ON) option (BUILD_OPAL_PYTHON "Building Python interface for OPAL" OFF) +option (WILL_BUILD_SHARED_LIBRARY "Building python hooks - requires dynamic libs" OFF) if (BUILD_OPAL_PYTHON) - option (WILL_BUILD_SHARED_LIBRARY "Building python hooks - requires dynamic libs" ON) + if (NOT WILL_BUILD_SHARED_LIBRARY) + message (FATAL_ERROR "For building python hooks you have to enable WILL_BUILD_SHARED_LIBRARY") + endif() find_package (Python3 COMPONENTS Development REQUIRED) endif ()