correct build CMAKE options for building opencl for rocm 4.1
@@ -96,7 +96,8 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
fi
VDI_ROOT=$AOMP_REPOS/$AOMP_VDI_REPO_NAME
- MYCMAKEOPTS="$AOMP_ORIGIN_RPATH_NO_DTAGS -DCMAKE_BUILD_TYPE=$BUILDTYPE -DCMAKE_INSTALL_PREFIX=$AOMP_INSTALL_DIR -DUSE_COMGR_LIBRARY=yes -DROCclr_DIR=$VDI_ROOT -DLIBROCclr_STATIC_DIR=$BUILD_DIR/build/vdi -DCMAKE_MODULE_PATH=$VDI_ROOT/cmake/modules -DCMAKE_PREFIX_PATH=$AOMP_INSTALL_DIR;$AOMP_INSTALL_DIR/include -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH='\$ORIGIN/../lib' -DCMAKE_EXE_LINKER_FLAGS='-Wl,--disable-new-dtags'"
+ export CMAKE_PREFIX_PATH="""$AOMP_INSTALL_DIR"""
+ MYCMAKEOPTS="$AOMP_ORIGIN_RPATH_NO_DTAGS -DOpenGL_GL_PREFERENCE=LEGACY -DCMAKE_BUILD_TYPE=$BUILDTYPE -DCMAKE_INSTALL_PREFIX=$AOMP_INSTALL_DIR -DROCclr_DIR=$VDI_ROOT -DLIBROCclr_STATIC_DIR=$BUILD_DIR/build/vdi -DCMAKE_MODULE_PATH=$VDI_ROOT/cmake/modules -DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH" -DCMAKE_EXE_LINKER_FLAGS='-Wl,--disable-new-dtags'"
mkdir -p $BUILD_DIR/build/ocl
cd $BUILD_DIR/build/ocl
