Skip to content

Commit

Permalink
Fix Debug build type(#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmach authored Aug 27, 2024
1 parent 4d9f382 commit 06c0515
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Source/GmmLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,13 @@ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set (GMM_LIB_DLL_NAME igfx_gmmumd_dll)

macro(GmmLibSetTargetConfig libTarget)
if (TARGET ${libTarget})
set_property(TARGET ${libTarget} APPEND PROPERTY COMPILE_DEFINITIONS
$<$<CONFIG:Release>: _RELEASE>
$<$<CONFIG:ReleaseInternal>: _RELEASE_INTERNAL>
$<$<CONFIG:Debug>: _DEBUG>
)
endif()

if(TARGET ${libTarget})
set_property(TARGET ${libTarget} APPEND PROPERTY COMPILE_DEFINITIONS
$<$<CONFIG:Release>: _RELEASE>
$<$<CONFIG:ReleaseInternal>: _RELEASE_INTERNAL>
$<$<CONFIG:Debug>: _DEBUG>
)
endif()
endmacro()

if(CMAKE_CONFIGURATION_TYPES)
Expand Down Expand Up @@ -464,12 +463,13 @@ include(Linux.cmake)
###################################################################################
add_library( ${GMM_LIB_DLL_NAME} SHARED igdgmm.rc ${UMD_SOURCES} ${UMD_HEADERS})

GmmLibSetTargetConfig(${GMM_LIB_DLL_NAME})

if(MSVC)

set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES OUTPUT_NAME "igdgmm${GMMLIB_ARCH}")

bs_set_wdk(${GMM_LIB_DLL_NAME})
GmmLibSetTargetConfig( ${GMM_LIB_DLL_NAME} )

set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES VS_GLOBAL_DriverTargetPlatform Universal)
set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES VS_PLATFORM_TOOLSET WindowsApplicationForDrivers10.0)
Expand Down

0 comments on commit 06c0515

Please sign in to comment.