llvm.org GIT mirror llvm / f6da33d
[CMake] Try to fix r239612, not to miss resources/windows_version_resource.rc in clang build. - Who defines ${LLVM_SOURCE_DIR} ? - Would windows_version_resource.rc be available in an *installed* llvm tree? I suggest it may be installed in ${PREFIX}/share. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239703 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 4 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
236236 set(sources ${ARGN})
237237 if (MSVC)
238238 set(resource_file ${LLVM_SOURCE_DIR}/resources/windows_version_resource.rc)
239 set(sources ${sources} ${resource_file})
240 source_group("Resource Files" ${resource_file})
241 set(windows_resource_file ${resource_file} PARENT_SCOPE)
239 if(EXISTS ${resource_file})
240 set(sources ${sources} ${resource_file})
241 source_group("Resource Files" ${resource_file})
242 set(windows_resource_file ${resource_file} PARENT_SCOPE)
243 endif()
242244 endif(MSVC)
243245
244246 set(${OUT_VAR} ${sources} PARENT_SCOPE)