Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Windows builds explicitly set CL environment variable to /DROS_BUILD_SHARED_LIBS=1 #39

Merged
merged 3 commits into from
Jan 24, 2023

Conversation

traversaro
Copy link
Member

ROS_BUILD_SHARED_LIBS is always defined in CMake by catkin, if ROS (1) is build as shared library . However, some packages are not passing compilation flags from CMake to other build systems (such as qmake), so we enable it explicitly via the CL environment variable, see https://learn.microsoft.com/en-us/cpp/build/reference/cl-environment-variables?view=msvc-170 .

I could only define this if the package name is ros-noetic-qt-gui-cpp, but I tought it was useful to have this also for other packages for similar problems, and anyhow it should not be problematic for other packages.

Fix RoboStack/ros-noetic#331 .

@traversaro traversaro changed the title For Windows build explicitly set CL environment to In Windows builds explicitly set CL environment variable to set CL=/DROS_BUILD_SHARED_LIBS=1 Jan 24, 2023
@traversaro traversaro changed the title In Windows builds explicitly set CL environment variable to set CL=/DROS_BUILD_SHARED_LIBS=1 In Windows builds explicitly set CL environment variable to /DROS_BUILD_SHARED_LIBS=1 Jan 24, 2023
@Tobias-Fischer
Copy link
Contributor

Thanks a lot @traversaro!!!

@Tobias-Fischer Tobias-Fischer merged commit f0d4ce1 into master Jan 24, 2023
@Tobias-Fischer Tobias-Fischer deleted the fixqtguicpp branch January 24, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qt-gui-cpp build broken on windows
2 participants