You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been struggling to build OpenEXR on CentOS-7.4.5 with CMake-3.14.5 due to the following:
add_library(Cg UNKNOWN IMPORTED GLOBAL)
and add_library(CgGL UNKNOWN IMPORTED GLOBAL)
only get correctly added if I change them to:
add_library(Cg SHARED IMPORTED GLOBAL)
and add_library(CgGL SHARED IMPORTED GLOBAL)
otherwise I get the error:
NOTICE-- Found Cg library
CMake Error at OpenEXR_Viewers/config/LocateCg.cmake:27 (add_library):
add_library cannot create ALIAS target "Cg::Cg" because target "Cg" is not
a library.
Call Stack (most recent call first):
OpenEXR_Viewers/CMakeLists.txt:47 (include)
For both Cg and CgGL
Which appears to be thrown by: add_library(Cg::Cg ALIAS Cg)
and add_library(Cg::CgGL ALIAS CgGL)
When their target type is
UNKNOWN
Are you aware of this issue and is there anything I can do about it aside from hacking the CMake?
Thanks,
Luke
The text was updated successfully, but these errors were encountered:
Hi there!
I've been struggling to build OpenEXR on CentOS-7.4.5 with CMake-3.14.5 due to the following:
add_library(Cg UNKNOWN IMPORTED GLOBAL)
and
add_library(CgGL UNKNOWN IMPORTED GLOBAL)
only get correctly added if I change them to:
add_library(Cg SHARED IMPORTED GLOBAL)
and
add_library(CgGL SHARED IMPORTED GLOBAL)
otherwise I get the error:
For both Cg and CgGL
Which appears to be thrown by:
add_library(Cg::Cg ALIAS Cg)
and
add_library(Cg::CgGL ALIAS CgGL)
When their target type is
Are you aware of this issue and is there anything I can do about it aside from hacking the CMake?
Thanks,
Luke
The text was updated successfully, but these errors were encountered: