How Can I Replicate A Command Line Arguments In Cmake With Ninja?
I'm having a android (clang based) compiler that i want to use to compile android projects using CMake. with command line arguments am able to compile the project and i want to rep
Solution 1:
The command line output posted is one for building a single source file, main.cpp
:
-o CMakeFiles\androidcmakeexample.dir\src\main.cpp.obj
Perhaps you are missing a proper CMAKE_CXX_FLAGS
, which is the CMake setting that specifies how C++ source files are compiled.
Try adding the following to your CMakeLists.txt
:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ANDROID_LIBRARY}")
Post a Comment for "How Can I Replicate A Command Line Arguments In Cmake With Ninja?"