I am trying to set a flag for the Microsoft assembler, but no luck. Dummy
repro below.
I tried setting target_compile_options, but that seems not to work. Then I
tried setting CMAKE_ASM_MASM_FLAGS, but that does not seem to work either.
It seems like I am hitting this issue:
https://gitlab.kitware
I am trying to pass the analyze flags to cl.exe, but I cannot figure out
how to get it working, example:
cmake_minimum_required (VERSION 2.8.11)
set (CMAKE_VERBOSE_MAKEFILE ON)
project (cppcore)
add_executable (const const.cpp)
target_compile_options (const analyze -analyze:plugin EspXEngine.dll)
to control
> whether or not compiler extensions are enabled too.
>
>
>
> On Sun, Apr 16, 2017 at 12:45 PM, Tiago Macarios
> wrote:
>
>> Hi,
>>
>> Given a template-only library exposed throw an interface is it possible
>> to set the necessary CXX_STANDARD n
Hi,
One can require a specific CXX_STANDARD to be used, but is it possible to
set a minimum and let CMake use the latest as long as it satisfies the
minimum?
Example code:
set_property(TARGET a_lib
PROPERTY CXX_STANDARD_MIN 11
PROPERTY CXX_STANDARD_REQUIRED ON
PROPERTY CXX_STANDARD_L
Hi,
Given a template-only library exposed throw an interface is it possible to
set the necessary CXX_STANDARD necessary to use the library? The code below
would be what I am trying to do.
add_library(a_lib INTERFACE)
set_property(TARGET a_lib
PROPERTY CXX_STANDARD 11
PROPERTY CXX_STANDAR
Hi,
Is there a simple way to get a Visual Studio + assembly project on windows?
This seems to work on Linux:
cmake_minimum_required(VERSION 3.7)
project(assembler C ASM)
set_source_files_properties(hello.s PROPERTIES COMPILE_FLAGS "-x
assembler-with-cpp")
add_executable(hello hello.s)
What woul
This works for me:
CXX_CLANG_TIDY
"/usr/bin/clang-tidy"
"-checks=modernize-*,readability-*,performance-*"
"-fix"
I think the difference are the semicolons in the checks instead of commas.
On Wed, Nov 16, 2016 at 1:32 PM, Nikita wrote:
> Hi,
>
> I've noticed that CXX
Well, I don't really mind how it is implemented. During compilation, or as
a separate target, but it would be a nice feature.
On Sun, Nov 13, 2016 at 11:08 PM, Patrick Boettcher <
patrick.boettc...@posteo.de> wrote:
> Hi,
>
> On Mon, 7 Nov 2016 12:06:15 -0800
> Tiago Mac
Hi,
Is there a way for me to get CMake libraries out of a target?
For example:
target_link_libraries(A B C)
Can I get B and C from A?
What I am trying to do:
We are working on adding include-what-you-use into our build system and
some of the libraries have their on mapping files. So I was wond
Hi,
CMake has "built-in" support for clang_tidy and include-what-you-use. I was
wondering why there is not support for clang_format. No one ever
contributed, or people think this should not be part of CMake?
Tiago
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake
Yup that did it! Thanks!
On Thu, Nov 3, 2016 at 12:10 PM, Nils Gladitz wrote:
> On 03.11.2016 19:32, Tiago Macarios wrote:
>
>>
>>
>> And I am building it like so:
>> mkdir build
>> cd build
>> cmake ..
>> cmake --build . --config Rele
wix.zip?dl=0
Tiago
On Thu, Nov 3, 2016 at 1:15 AM, Nils Gladitz wrote:
> On 11/03/2016 12:23 AM, Tiago Macarios wrote:
>
> Hi,
>>
>> I am trying to create an installer with CPACK and WIX as generator.
>> Everything works fine except that I cannot get start menu shortcuts
Hi,
I am trying to create an installer with CPACK and WIX as generator.
Everything works fine except that I cannot get start menu shortcuts to work.
I was using almost the same code as the link below (which seems to be the
unit tests for this feature), then I tried to build the unit test and I
st
CLEAN_FILES.html
>>
>> You can set it to a list of files which will be removed as part of
>> running `make clean` or its equivalent for other generators.
>>
>> Petr
>>
>> On 26 October 2016 at 04:36, Tiago Macarios
>> wrote:
>>
>>> Hi,
>
Hi,
Is there a way to have a command to be run during a clean?
I have a custom_target which does a fair bit of things and it also has the
ability to clean up after itself. So conceptually something like this is
what I am looking for:
add_custom_target(Name ALL
COMMAND command
COMMAND_CLE
ng to a macro has other effects, so make sure
> you read the docs before going down that path). Also note that setting it
> in one directory does not make it apply to subdirectories as well, in case
> that matters in your situation.
>
>
>
> On Tue, Oct 25, 2016 at 9:42 AM, Tiag
Hi,
Does CMAKE_INCLUDE_CURRENT_DIR need to be set outside of a function?
I have a function where I define an executable "add_executable". This
executable uses moc'ed Qt clasees, so I need to set
CMAKE_INCLUDE_CURRENT_DIR. It seems like I have to set it from the top
level script calling the functi
If I remember correctly that’s how MinGW works, and this
> should be something very similar.
>
>
>
>
>
> *Feladó: *Tiago Macarios
> *Elküldve: *2016. augusztus 11., csütörtök 1:51
> *Címzett: *CMake ML
> *Tárgy: *[CMake] Bash on ubuntu on windows as target
>
>
&
Hi All,
Windows 10 anniversary edition comes with support to execute Linux
binaries. I have been trying to use it with one of our projects, but I have
been getting a weird error. Maybe someone can help me?
The target is pretty simple:
set(BASH "C:\\Windows\\System32\\bash.exe")
set(ARGS "--help"
Hi Alan,
Thanks a lot! Yeah I was thinking about something along those lines, but i
was wondering if there is a solution that does not involve modifying the
submodules.
On Wed, Jul 20, 2016 at 12:09 PM, Alan W. Irwin
wrote:
> On 2016-07-20 11:02-0700 Tiago Macarios wrote:
>
> Hi,
>
Hi,
I have a project which uses git submodules to manage it's dependencies.
Right now we want to add a installer to it, problem we have is that some of
the dependencies have their own "install" directives. Is there a way to
ignore a project install command?
Long version case it is unclear:
main
Hi,
Is there a way to set a property of a file/source from a function?
Below seems to work file outside of a function, but seems not to work
inside one.
set_property(
SOURCE ${AFILE}
APPEND PROPERTY COMPILE_FLAGS "/wd4068"
)
Do I need to CACHE it? or is it a scope problem?
Thanks,
Mac
Hi,
I am currently using QT + CMake + Visual Studio and everything works great.
Problem I am having is that if I change a .ui file Visual Studio does not
seem to capture that during the build. If I just "touch" the header file,
them everything works fine (moc gets triggered).
Is there a way to s
I can't even think of a reliable way of
> doing it myself. You can't just rely on the include paths of your
> component, as that would introduce a lot of possible problems.)
>
> All in all, I just accepted this behaviour as-is.
>
> Cheers,
>Attila
>
> &
east
> it does for us, in a very similar setup.
>
>
> http://acode-browser.usatlas.bnl.gov/lxr/source/atlas/graphics/VP1/VP1Gui/CMakeLists.txt
>
> Cheers,
> Attila
>
> > On 11 May 2016, at 07:14, Tiago Macarios
> wrote:
> >
> > Hi,
> &
Hi,
I am having trouble using AUTOMOC with a project where header files and
source files are in different sub-directories. I wrote a detailed stack
overflow question here:
http://stackoverflow.com/questions/37151163/cmake-automoc-with-files-on-different-folders
and would really appreciate if someo
Hi All,
I have a cmake project which one of the install targets is a collection of
files. This files change depending on the configuration (Release,
Debug...). I would like to be able to install the files like so:
install(DIRECTORY $
DESTINATION bin
COMPONENT files)
>From the docs I see
27 matches
Mail list logo