diff options
Diffstat (limited to 'cmake/modules/LLVMConfig.cmake')
-rwxr-xr-x | cmake/modules/LLVMConfig.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake index e8308f680b..615a118a3c 100755 --- a/cmake/modules/LLVMConfig.cmake +++ b/cmake/modules/LLVMConfig.cmake @@ -64,13 +64,13 @@ function(explicit_map_components_to_libraries out_libs) # Expand some keywords: list(FIND link_components "engine" engine_required) - if( engine_required ) + if( NOT engine_required STREQUAL "-1" ) # TODO: as we assume we are on X86, this is `jit'. list(APPEND link_components "jit") list(APPEND link_components "native") endif() list(FIND link_components "native" native_required) - if( native_required ) + if( NOT native_required STREQUAL "-1" ) list(APPEND link_components "X86") endif() |