Skip to content

cmake: fix build after 3rdparty updates#16574

Merged
AniLeo merged 4 commits into
RPCS3:masterfrom
oltolm:cmake
Feb 15, 2025
Merged

cmake: fix build after 3rdparty updates#16574
AniLeo merged 4 commits into
RPCS3:masterfrom
oltolm:cmake

Conversation

@oltolm

@oltolm oltolm commented Jan 18, 2025

Copy link
Copy Markdown
Contributor

Fixes a bunch of CMake problems. MSVC CMake build did not work, building on Windows with internal zlib also did not work.

@Megamouse Megamouse added the Build and CI Anything related to the build process and continuous integration label Jan 19, 2025
@oltolm

oltolm commented Feb 12, 2025

Copy link
Copy Markdown
Contributor Author

ping

@AniLeo AniLeo requested a review from hcorion February 14, 2025 00:15
Comment thread rpcs3/Emu/CMakeLists.txt Outdated
IPC_socket.cpp
)

set_target_properties(rpcs3_emu PROPERTIES INTERPROCEDURAL_OPTIMIZATION $<$<CONFIG:Release>:TRUE>)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
set_target_properties(rpcs3_emu PROPERTIES INTERPROCEDURAL_OPTIMIZATION $<$<CONFIG:Release>:TRUE>)
set_target_properties(rpcs3_emu PROPERTIES INTERPROCEDURAL_OPTIMIZATION $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>,$<CONFIG:MinSizeRel>>:TRUE>)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

After testing I discovered that generator expressions don't work for INTERPROCEDURAL_OPTIMIZATION. I just introduced an option to turn it off, because debug configurations like Debug and RelWithDebInfo do not work with LTO.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah that sucks

@AniLeo AniLeo merged commit 7e10aa5 into RPCS3:master Feb 15, 2025
@oltolm oltolm deleted the cmake branch February 15, 2025 21:50
@digant73

digant73 commented Feb 17, 2025

Copy link
Copy Markdown
Contributor

@oltolm which MS C++ redistributable version are you using?
And which MSVC version? 1.43 (VS 2022), 1.42 (VS 2019)...

@oltolm

oltolm commented Feb 17, 2025

Copy link
Copy Markdown
Contributor Author

I don't know. I just installed the VS2022 17.13.0.

@Yahfz

Yahfz commented Feb 19, 2025

Copy link
Copy Markdown
Contributor

@oltolm Hey, consider joining the discord server if you haven't already. There's a development channel with all the project contributors.

@oltolm

oltolm commented Feb 19, 2025

Copy link
Copy Markdown
Contributor Author

@Yahfz I have already joined the discord server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build and CI Anything related to the build process and continuous integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants