ri, Apr 12, 2019 at 10:16 AM Rob Boehne
mailto:r...@datalogics.com>> wrote:
All,
We’re really loving CMake here! And we’ve been slowly figuring out how to make
things work for our legacy C/C++ project.
One improvement we want to make is to tell cmake to generate Visual Studio
projects th
The same behavior is also present in version 3.14.0-rc1.
On 2/12/19, 11:54 AM, "CMake on behalf of Rob Boehne" wrote:
Hmmm, I think I've found a bug. Here is what I have in my top-level
CMakeLists.txt file:
if(WIN32)
#
# run the script
; exited with code -1.
1>Done executing task "Exec" -- FAILED.
1>Done building target "PostBuildEvent" in project "INSTALL.vcxproj" -- FAILED.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:29.40
== Build: 0 succeeded, 1 failed, 31 up-to-d
I submitted a patch a few weeks ago that would allow you to override the
generated export list with the target property LINK_FLAGS.
This has been merged, but it is not yet present in the latest release. The
simplest way to go about this would be to set the variable
CMAKE_CXX_CREATE_SHARED_LIBRAR
I’m going to chime in here and say that IMO, it really isn’t the build system
generator’s responsibility to set a warning level.
CMake maintainers should consider these questions when deciding on what to do
with this issue:
*) Does CMake set the compiler’s warning flags on all platforms?
*) Ho
Ok, Thanks! I guess I have to get better at reading error messages ☺
From: Chuck Atkins
Date: Monday, October 15, 2018 at 12:19 PM
To: Rob Boehne
Cc: CMake Mail List
Subject: Re: [CMake] Building arguments to target_comple_definitions()
Hi Rob,
How would one set a variable containing
How would one set a variable containing multiple definitions to be passed to
target_compile_definitions() ?
From: Chuck Atkins
Date: Friday, October 12, 2018 at 1:45 PM
To: Rob Boehne
Cc: CMake Mail List
Subject: Re: [CMake] Building arguments to target_comple_definitions()
So in CMake
They were elided for brevity –
So in CMake parlance, what type is the last argument to
target_compile_definitions? Is it a list, string or something else?
From: Chuck Atkins
Date: Thursday, October 11, 2018 at 2:55 PM
To: Rob Boehne
Cc: CMake Mail List
Subject: Re: [CMake] Building
can use this to set
the common flags
From: Chuck Atkins
Date: Thursday, October 11, 2018 at 2:12 PM
To: Rob Boehne
Cc: CMake Mail List
Subject: Re: [CMake] Building arguments to target_comple_definitions()
Hi Rob,
target_compile_definitions( CHUNK1 ${COMMON_DEFINITIONS} CHUNK1_STUFF
-DSOME_DEFINE_3 -DCHUNK2_STUFF
-DCHUNK_NAME=\”Two\” -c chunk_two.cpp -o chunk_two.o
$(CXX) -DSOME_DEFINE1 -DSOME_DEFINE_2 -DSOME_DEFINE_3 -DCHUNK2_STUFF -c
foobar.cpp -o foobar.o
From: Chuck Atkins
Date: Wednesday, October 10, 2018 at 2:11 PM
To: Rob Boehne
Cc: CMake Mail List
Subject: Re: [CMake
10 matches
Mail list logo