fix non-gui build on Windows

This commit is contained in:
Matthias Hochsteger 2022-06-23 04:04:38 -07:00
parent 5acb38eabd
commit 00d9583af3

View File

@ -407,9 +407,9 @@ if (USE_OCC)
endif()
endif()
message(STATUS "OCC DIRS ${OpenCASCADE_INCLUDE_DIR}")
if(WIN32)
if(WIN32 AND USE_GUI)
target_link_libraries(nggui PRIVATE ${OCC_LIBRARIES})
endif(WIN32)
endif(WIN32 AND USE_GUI)
endif (USE_OCC)
#######################################################################