Skip to content

Commit

Permalink
Fix setting of ARCH_INDEPENDENT based on INTERFACE_LIBRARY property (#39
Browse files Browse the repository at this point in the history
)

If PROJECT_ARCH_INDEPENDENT is not set by the user, PackageProject
will attempt to set this automatically depending on whether the target
is an INTERFACE_LIBRARY or not.

However, this auto-detection currently does not work due to an error in
the CMake logic.
  • Loading branch information
salman-javed-nz authored Jan 17, 2024
1 parent ac46aef commit 2d8a468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function(packageProject)
set(wbpvf_extra_args "")
if(NOT DEFINED PROJECT_ARCH_INDEPENDENT)
get_target_property(target_type "${PROJECT_NAME}" TYPE)
if(TYPE STREQUAL "INTERFACE_LIBRARY")
if(target_type STREQUAL "INTERFACE_LIBRARY")
set(PROJECT_ARCH_INDEPENDENT YES)
endif()
endif()
Expand Down

0 comments on commit 2d8a468

Please sign in to comment.