Can't you simply change the cmake compiler and cflags using CMAKE_CXX_COMPILER 
and CMAKE_CXX_FLAGS (or add_definitions())?

For example something like:
cmake -DCMAKE_CXX_COMPILER=scalasca -DCMAKE_CXX_FLAGS="-instrument mpicxx"

From: [email protected] [mailto:[email protected]] On Behalf Of 
Irina Demeshko
Sent: 24 September 2013 18:14
To: [email protected]
Subject: [CMake] Using MPI Profiler Scalasca in Cmake



Hi, 

I want to utilize the MPI Profiler "Scalasca" [1] within my CMake project. 
For this reason I need to compile my project differently. 
I need to use
# scalasca -instrument mpicxx -c foo.cpp 
instead of 
# mpicxx -c foo.cpp 
I've tried to specify CX  compiler by:
 export CXX="scalasca -instrument mpicxx",
but it seems like "scalasca -instrument" was ignored
I also tried to specify -D CMAKE_CXX_COMPILER="scalasca -instrument mpicxx",
but have got an Error during compilation.

Do you have any ideas how to make this work? 

Thanks for your time and help!

Irina

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to