Handle the option USE_COMGR_LIBRARY correctly
This is a follow up to http://gerrit-git.amd.com/c/compute/ec/vdi/+/359563. The setting is now either ON or OFF, never "yes". Change-Id: I031d013a8d239dc72ef610da81bd31b8b78a3ba8
This commit is contained in:
committed by
Vladislav Sytchenko
vanhempi
fabfc42b68
commit
3a84fcd13e
@@ -177,7 +177,7 @@ target_include_directories(amdrocclr_static
|
|||||||
|
|
||||||
target_compile_definitions(amdrocclr_static PRIVATE BSD_LIBELF)
|
target_compile_definitions(amdrocclr_static PRIVATE BSD_LIBELF)
|
||||||
|
|
||||||
if(${USE_COMGR_LIBRARY} MATCHES "yes")
|
if(USE_COMGR_LIBRARY)
|
||||||
# FIXME: This should not be part of the public interface. Downstream
|
# FIXME: This should not be part of the public interface. Downstream
|
||||||
# users need to add these definitions. This should be defined in a
|
# users need to add these definitions. This should be defined in a
|
||||||
# config header here so other builds don't need to be aware of this.
|
# config header here so other builds don't need to be aware of this.
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ target_include_directories(oclrocm
|
|||||||
${ROCR_INCLUDES})
|
${ROCR_INCLUDES})
|
||||||
|
|
||||||
|
|
||||||
if(${USE_COMGR_LIBRARY} MATCHES "yes")
|
if(USE_COMGR_LIBRARY)
|
||||||
target_compile_definitions(oclrocm
|
target_compile_definitions(oclrocm
|
||||||
PRIVATE USE_COMGR_LIBRARY)
|
PRIVATE USE_COMGR_LIBRARY)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Viittaa uudesa ongelmassa
Block a user