Software Archive
Read-only legacy content
17060 Discussions

CMAKE_AR xiar -qoffload-build

Yulong_Ao
Beginner
333 Views

I add some offload codes for the package gromacs and use the cmake that the package requires build it.

As we know, the commad for creating offload library: xiar -qoffload-build. But when I set the environment

varibale: DCMAKE_AR="/opt/intel/composer_xe_2013_sp1.3.174/bin/intel64/xiar -qoffload-build" . However

It can not work. 

QQ截图20141023210652.png

0 Kudos
1 Reply
Kevin_D_Intel
Employee
333 Views

Do not include the -qoffload-build as part of the variable setting. Set the variable only to the xiar command (with the full path if desired) and then include the -qoffload-build explicitly as part of the use later in the file. I.e.

DCMAKE_AR="/opt/intel/composer_xe_2013_sp1.3.174/bin/intel64/xiar"

$(DCMAKE_AR) -qoffload_build ....

0 Kudos
Reply