fix scenario where ilmimf is being compiled from parent directory
need to use current source dir so test images can be found
@@ -10,7 +10,7 @@ IF (NOT ILMBASE_PACKAGE_PREFIX)
SET (ILMBASE_PACKAGE_PREFIX ${CMAKE_INSTALL_PREFIX})
ENDIF ()
-ADD_DEFINITIONS (-DILM_IMF_TEST_IMAGEDIR="${CMAKE_SOURCE_DIR}/IlmImfTest/" )
+ADD_DEFINITIONS (-DILM_IMF_TEST_IMAGEDIR="${CMAKE_CURRENT_SOURCE_DIR}/IlmImfTest/" )
IF (NOT WIN32)
SET ( PTHREAD_LIB pthread )
