Fix option for profile

parent 2ee4fcc5
......@@ -10,7 +10,7 @@ if [ "$1" == "--debug_symbols" ]; then
shift
fi
if [ "$1" == "--profile" ]; then
ov_build_type=RelWithDebInfo -DCMAKE_C_FLAGS_RELWITHDEBINFO='-O2 -g -DNDEBUG -pg' -DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-O2 -g -DNDEBUG -pg' -DCMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO='-pgq'
ov_build_type=Profile
shift
fi
......@@ -29,7 +29,15 @@ echo ""
echo "Creating makefiles..."
echo ""
cmake ${ov_script_dir}/.. -DCMAKE_BUILD_TYPE=${ov_build_type} -DCMAKE_INSTALL_PREFIX=${ov_install_dir}
if [ ${ov_build_type} == Profile ]; then
cmake ${ov_script_dir}/.. -DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-O2 -g -DNDEBUG -pg' -DCMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO='-pgq' -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=${ov_install_dir}
else
cmake ${ov_script_dir}/.. -DCMAKE_BUILD_TYPE=${ov_build_type} -DCMAKE_INSTALL_PREFIX=${ov_install_dir}
fi
if [ $? -eq 0 ]; then
echo CMake has been called successfully !
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment