Discussions

Expand all | Collapse all

I want to give the cmake option to mapd_server

  • 1.  I want to give the cmake option to mapd_server

    Posted 01-17-2019 02:09

    When making a mapd_server, I want to give you the option to make a cm.

    After adding -pg option for gprof to /mapd-core/build/CMakefiles/mapd_server.dir/flags.make, run ‘make -j 4’.
    However, the .out file was not created even if ‘mapd_server’ was run.

    Run the ‘$make -j 4’ command and go back to flags.make.The -pg option is removed. How can I give the cmake an option? Is it correct to write options on this file?



  • 2.  RE: I want to give the cmake option to mapd_server

    OmniSci Employee
    Posted 01-17-2019 02:15

    Hi @Hyuck,

    The option you’re looking for is CMAKE_CXX_FLAGS:

    cmake -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS=-pg ..
    

    Options set in that manner will be persisted until you delete the build directory.

    You can also use ccmake (if installed) to get a tui which lets you see and set all available options.



  • 3.  RE: I want to give the cmake option to mapd_server

    Posted 02-13-2019 07:23

    Thank you!!!
    How i apply multi cxx flags?
    For example, i want to give a flags to mapd_server.
    i try, but it applied only ‘-pg’
    $cmake -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS=-g -pg …