I need to profile a C/C++ program. I'm using cmake, and all my compile configurations are set up in a CMakeList. In this post, there is an ugly way to do this. There is another solution here, but it did not work in my case. So, as explained here, I must translate a configuration like this
export CC="skin icc"
export CXX="skin icpc"
....
make
or
make CC="skin icc" CXX="skin icpc"....
into a CMakeList configuration. In my current CMakeList, I have not set up the compilers. Only flags are defined
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fopenmp -o3")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fopenmp -o3")
Any help would be very welcome. Thanks.
into a CMakeList configuration". As can be seen in my post.
– tnas Jun 19 '17 at 20:24