GNU autotools: cmake gui to configure conversion

36 Views Asked by At

So I have this cmake gui: enter image description here

I can only partially translate that in to following cmd:

configure --prefix=/opt/systemc --enable-pthreads

How should I set CMAKE_BUILD_TYPE and CMAKE_CXX_STANDARD?

1

There are 1 best solutions below

0
yhgu2000 On

Everything can be set using the -D option. For your question:

cd /usr2/aswang/Downloads/systemc-2.3.3/build
cmake .. \
  -DBUILD_SHARED_LIBS=ON \
  -DCMAKE_BUILD_TYPE=Debug \
  -DCMAKE_CXX_STANDARD=11 \
  -DCMAKE_INSTALL_PREFIX=/opt/systemc \
  -DSystemC_TARGET_ARCH=linux64

https://cmake.org/cmake/help/latest/manual/cmake.1.html#cmdoption-cmake-D