Skip to content

Commit

Permalink
- Changed Error Conditions for Fitting Filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ItomBuild committed Jun 2, 2024
1 parent 1068b7b commit 0842610
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ endif()

# QuantumComposer
if(WIN32)
option(PLUGIN_QuantumComposer "Build with this plugin." OFF)
option(PLUGIN_QuantumComposer "Build with this plugin." ${ITOM_BUILD_SHIPMENT})
if(PLUGIN_QuantumComposer)
add_subdirectory(QuantumComposer)
endif(PLUGIN_QuantumComposer)
Expand Down
11 changes: 7 additions & 4 deletions FittingFilters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ itom_init_cmake_policy(3.12)
itom_init_plugin_library(${target_name}) #Start the project, init compiler settings and set default configurations for plugins
itom_find_package_qt(ON Widgets Xml LinguistTools)

if(OpenCV_FOUND AND LAPACKE_FOUND AND OPENMP_FOUND)
if(OpenCV_FOUND AND OPENMP_FOUND)

if(OPENMP_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
Expand Down Expand Up @@ -110,6 +110,9 @@ if(OpenCV_FOUND AND LAPACKE_FOUND AND OPENMP_FOUND)
itom_add_plugin_qm_files_to_copy_list(${target_name} QM_FILES COPY_SOURCES COPY_DESTINATIONS)
itom_post_build_copy_files(${target_name} COPY_SOURCES COPY_DESTINATIONS)

else(OpenCV_FOUND AND LAPACKE_FOUND AND OPENMP_FOUND)
message(WARNING "${target_name}-Dependency OpenCV-${OpenCV_FOUND}, LAPACKE-${LAPACKE_FOUND} and/or OpenMP-${OPENMP_FOUND} could not be found. ${target_name} will not be build")
endif(OpenCV_FOUND AND LAPACKE_FOUND AND OPENMP_FOUND)
else(OpenCV_FOUND AND OPENMP_FOUND)
message(FATAL_ERROR "${target_name}-Dependency OpenCV and/or OpenMP could not be found. ${target_name} will not be build")
if(NOT LAPACKE_FOUND)
message(FATAL_ERROR "${target_name}-Dependency LAPACKE could not be found. ${target_name} will not be build")
endif(NOT LAPACKE_FOUND)
endif(OpenCV_FOUND AND OPENMP_FOUND)

0 comments on commit 0842610

Please sign in to comment.