Skip to content

Commit

Permalink
Fix issue with running ospStudio, closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
JungWhoNam committed Feb 4, 2023
1 parent bd07bb4 commit afacd92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ install(TARGETS ospStudio

if(OSPRAY_INSTALL)
get_target_property(OSPRAY_LIBNAME ospray::ospray IMPORTED_LOCATION_RELEASE)
if (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
get_target_property(OSPRAY_LIBNAME ospray::ospray IMPORTED_LOCATION_DEBUG)
endif()

string(REGEX MATCH "^.*/" _sharedlib_glob "${OSPRAY_LIBNAME}")
string(APPEND _sharedlib_glob "*${CMAKE_SHARED_LIBRARY_SUFFIX}*")
Expand Down

0 comments on commit afacd92

Please sign in to comment.