ID 502250 - NukeConfig.cmake not installed in the cmake directory

Follow

Problem summary
NukeConfig.cmake not installed in the cmake directory


It looks like NukeConfig.cmake was updated then, introducing these lines:

get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) # remove one directory level i.e. "cmake/"
message(STATUS "Found NDK: ${_IMPORT_PREFIX}")

As the file resides in the Nuke root directory, _IMPORT_PREFIX ends up pointing to its parent directory, outside the scope of the Nuke installation.


Steps to reproduce


Reproduced by development team when testing building with NukeConfig.cmake


Expected behaviour
For NukeConfig.cmake to work correctly when 


Actual behaviour
The build process fails


Workaround
Remove the problematic line:

get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) # remove one directory level i.e. "cmake/"


Reproduced by support
Reproduced by development team, not reproduced by support

    We're sorry to hear that

    Please tell us why