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

Added support non-MSVC toolchains on Windows (fixed #1 issue) #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

o-kos
Copy link

@o-kos o-kos commented Aug 29, 2023

Fixed utils.cmake to support cmake parsing for toolchains other than MSVC.
Calling silent_copy.cmake with PDB files in arguments now depends on the used complier.

@@ -24,25 +24,28 @@ function(win_copy_deps_to_target_dir target)
set(has_runtime_dll_genex YES)

add_custom_command(TARGET ${target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -P "${mylib_SOURCE_DIR}/cmake/silent_copy.cmake"
COMMAND ${CMAKE_COMMAND} -P "${mylib_SOURCE_DIR}/cmake/silent_copy.cmake"

Choose a reason for hiding this comment

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

Please revert white space changes.


set(pdb_files "")
if (MSVC)
set(pdb_files "$<TARGET_PDB_FILE:${dep}>")

Choose a reason for hiding this comment

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

Please use generator expression CXX_COMPILER_ID to get compiler in use.

Copy link

@ArthurKoba ArthurKoba left a comment

Choose a reason for hiding this comment

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

These changes when using Win11, Clion and Mingw helped to correct the CMAKE error and the tests began to start normally. Thx!

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.

3 participants