Skip to content

Commit 2d8a468

Browse files
Fix setting of ARCH_INDEPENDENT based on INTERFACE_LIBRARY property (#39)
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.
1 parent ac46aef commit 2d8a468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function(packageProject)
108108
set(wbpvf_extra_args "")
109109
if(NOT DEFINED PROJECT_ARCH_INDEPENDENT)
110110
get_target_property(target_type "${PROJECT_NAME}" TYPE)
111-
if(TYPE STREQUAL "INTERFACE_LIBRARY")
111+
if(target_type STREQUAL "INTERFACE_LIBRARY")
112112
set(PROJECT_ARCH_INDEPENDENT YES)
113113
endif()
114114
endif()

0 commit comments

Comments
 (0)