Questions tagged [buildconfiguration]
The process, mechanism and results of configuring the build of a source-code project or hierarchy-of-files into its target artifacts (executable files, object libraries, generated documents etc.)
buildconfiguration
205
questions
0
votes
0
answers
14
views
How to provide different settings for debug and release version of React app in Visual Studio?
I'm writing a React app in Visual Studio as a part of React-front, Asp.Net Core-back pattern. Ultimately I will host both apps in the Azure cloud environment.
In Asp.Net Core I have a number of ways ...
0
votes
0
answers
26
views
Unable to find base configuration section in build settings on Xcode 14.3
Hey I am trying out a project and am using Flutter for the first time. I need to change the appropriate file for Debug, Release, and Profile in the base configuration section under build settings on ...
0
votes
0
answers
28
views
How do I configure my library to best support static builds of dependent projects?
Suppose I am developing the libfoo library, written in a compiled language, and am using CMake to configure its build. This library itself depends on another library, libbar. Thus, if someone else is ...
0
votes
0
answers
15
views
RPC dependency - how do I configure it properly with CMake?
Suppose I want to build the following C program using CMake:
#include <stdio.h>
#include <rpc/rpc.h>
int main()
{
printf("Hello world\n");
struct sockaddr_in ...
2
votes
0
answers
63
views
In CMake, how do I assure linking against sometimes-separate parts of the C++ standard libray (fs, stacktrace)?
In principle, a provider of an implementation of the C++ standard library does not have to bundle everything in a single library/archive file; and, indeed, G++ is (in)famous for doing that, having for ...
3
votes
1
answer
77
views
How can I specify flags for CMAKE_<LANG>_HOST_COMPILER?
CMake has a set of variables named CMAKE_<LANG>_FLAGS (CMAKE_CXX_FLAGS, CMAKE_Fortran_FLAGS etc.) which are used when building command-lines for compiling targets with the compilers for those ...
0
votes
1
answer
54
views
How to successfully build a Microsoft.Dotnet.Wpf.sln repository downloaded from GitHub at your home PC?
I am trying to build a Microsoft.Dotnet.Wpf.sln which I downloaded from GitHub here. I installed Visual Studio 2022 Preview as mentioned in the instruction. Now when I open the Microsoft.Dotnet.Wpf....
0
votes
0
answers
22
views
How can I tell (in a generator expression) which language a target is compiled as?
I want to use a generator expression which puts some text on the command-line of compiling certain targets of mine. The thing is, I need different text for CUDA targets and different text for C++ ...
2
votes
1
answer
575
views
Implementing Different Build Configurations in Compose Multiplatform for Android and iOS
I am working on a project using Jetpack Compose Multiplatform, targeting both Android and iOS platforms. My aim is to implement different build configurations for UAT (User Acceptance Testing) and ...
0
votes
1
answer
190
views
Cannot specify link libraries for target which is not built by this project - but I really want to
A project of mine depends on CUDA, and also on another library, call it libfoo, which itself depends on CUDA. Now, in the CMakeLists.txt of libfoo, we find:
find_package(CUDAToolkit REQUIRED)
...
0
votes
0
answers
30
views
How can I get CMake to "forget" about a target?
My CMake project has several dependencies. One of the dependencies may define a target named some_target, and may not define it. Another one of my dependencies performs certain configuration actions ...
2
votes
1
answer
3k
views
How do I list all available targets for a project configured for ninja?
I'm looking at a build folder configured using CMake for building with ninja. Naturally, it has a build.ninja file and I can ninja tgt1 in that folder and build target tgt1. But - what I want to do is ...
0
votes
0
answers
37
views
Is it safe to set WINDOWS_EXPORT_ALL_SYMBOLS for all platforms/compilers?
I'm building a C or C++ library, and I want to arrange it so that all symbols defined in my objects to be exported by default. I know can do this with the WINDOWS_EXPORT_ALL_SYMBOLS target property; ...
1
vote
0
answers
206
views
What is .NET target platform in Visual Studio
In this question, it is discussed the difference between platform targeting in Visual Studio, I recently found that a .NET option was added there and these lines along others were added in the sln ...
1
vote
1
answer
614
views
What should I link against: The actual CUDA driver library or the driver library stub?
A CUDA distribution, at least on Linux, has a "stub libraries" directory, which contains among others a libcuda.so file - named the same as an actual NVIDIA driver library.
When build a CUDA ...