Sync with trunk r58151 to bring the latest changes from Amine and Timo.
[reactos.git] / cmake / CMakeMacros.cmake
index 34aeebd..ba7f4a7 100644 (file)
@@ -134,7 +134,7 @@ function(add_cd_file)
 
     #get file if we need to
     if(NOT _CD_FILE)
-        get_target_property(_CD_FILE ${_CD_TARGET} LOCATION)
+        get_target_property(_CD_FILE ${_CD_TARGET} LOCATION_${CMAKE_BUILD_TYPE})
     endif()
 
     #do we add it to all CDs?