Skip to content

Switch to cmake part1#2251

Open
peterNordin wants to merge 41 commits intoHopsan:masterfrom
peterNordin:switch_to_cmake_part1
Open

Switch to cmake part1#2251
peterNordin wants to merge 41 commits intoHopsan:masterfrom
peterNordin:switch_to_cmake_part1

Conversation

@peterNordin
Copy link
Copy Markdown
Member

This is part one of switch over to CMake, has been in progress for more than three years.
After adding DCP additional work is needed to be able to build release, but i will make a part2

This PR enables me to build all of Hopsan on Linux GCC, Windows MinGW and Windows MSVC 2019.
Including with DCP. But I do not know if it actually works in all these cases. Hopsan at least starts.

Deb build has been migrated to CMake. But flatpak/snap and Windows builds remain.

@peterNordin peterNordin requested a review from robbr48 December 10, 2024 22:58
Copy link
Copy Markdown
Contributor

@robbr48 robbr48 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work except for the DCPLib. It no is no longer compiled and linked since it is header-only. See separate comments in hopsandcp/CMakeLists.txt.

The conflict is just because I fixed the same typo, so it is very easy to fix.

@peterNordin peterNordin force-pushed the switch_to_cmake_part1 branch 2 times, most recently from e9fa0de to a54ee01 Compare August 12, 2025 21:09
@robbr48
Copy link
Copy Markdown
Contributor

robbr48 commented Aug 18, 2025

There is something wrong with fmi4c, I get the following error:

[cmake] CMake Error in componentLibraries/defaultLibrary/CMakeLists.txt:
[cmake]   Imported target "fmi4c::fmi4c" includes non-existent path
[cmake] 
[cmake]     "/minizip"

@peterNordin peterNordin force-pushed the switch_to_cmake_part1 branch from bf5b415 to 1556ca9 Compare December 16, 2025 21:31
@peterNordin peterNordin force-pushed the switch_to_cmake_part1 branch 2 times, most recently from 7d3ea5e to 2a0a799 Compare March 19, 2026 19:47
@peterNordin peterNordin force-pushed the switch_to_cmake_part1 branch 5 times, most recently from 9126a74 to 0acd1ed Compare March 24, 2026 19:17
@peterNordin peterNordin force-pushed the switch_to_cmake_part1 branch from 0acd1ed to 9e5ca6d Compare March 27, 2026 21:51
@peterNordin peterNordin requested a review from robbr48 March 27, 2026 21:52
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.

2 participants