# )
ELSE(BBTK_CORE_PACKAGE)
# If linking against a non-wx bbtk : problem
- IF(NOT BBTK_USE_WXWIDGETS)
+ IF(NOT BBTK_BUILT_WITH_WX)
MESSAGE(FATAL_ERROR "The bbtk package ${BBTK_PACKAGE_NAME} needs wxWidgets however the bbtk library which was found on your system was not compiled with wxWidgets : recompile it and rebuild the package.")
- ELSE(NOT BBTK_USE_WXWIDGETS)
+ ELSE(NOT BBTK_BUILT_WITH_WX)
SET(USE_WXWIDGETS ON CACHE BOOL "Use wxWidgets" FORCE)
- ENDIF(NOT BBTK_USE_WXWIDGETS)
+ ENDIF(NOT BBTK_BUILT_WITH_WX)
ENDIF(BBTK_CORE_PACKAGE)
ENDIF(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS)