@@ -390,6 +390,18 @@ else()
390
390
)
391
391
endif ()
392
392
393
+ set (UMF_OPTIONAL_SYMBOLS_LINUX "" )
394
+ set (UMF_OPTIONAL_SYMBOLS_WINDOWS "" )
395
+
396
+ # Conditional configuration for Level Zero provider
397
+ if (UMF_BUILD_LEVEL_ZERO_PROVIDER)
398
+ add_optional_symbol(umfLevelZeroMemoryProviderOps)
399
+ endif ()
400
+
401
+ if (NOT UMF_DISABLE_HWLOC)
402
+ add_optional_symbol(umfOsMemoryProviderOps)
403
+ endif ()
404
+
393
405
add_subdirectory (src)
394
406
395
407
if (UMF_BUILD_TESTS)
@@ -408,17 +420,6 @@ if(UMF_BUILD_EXAMPLES)
408
420
endif ()
409
421
endif ()
410
422
411
- # Conditional configuration for Level Zero provider
412
- if (UMF_BUILD_LEVEL_ZERO_PROVIDER)
413
- set (OPTIONAL_SYMBOLS "umfLevelZeroMemoryProviderOps" )
414
- else ()
415
- set (OPTIONAL_SYMBOLS "" )
416
- endif ()
417
-
418
- # Configure the DEF file based on whether Level Zero provider is built
419
- configure_file ("${CMAKE_CURRENT_SOURCE_DIR} /src/libumf.def.in"
420
- "${CMAKE_CURRENT_BINARY_DIR} /src/libumf.def" @ONLY)
421
-
422
423
if (UMF_FORMAT_CODE_STYLE)
423
424
find_program (CLANG_FORMAT NAMES clang-format-15 clang-format-15.0
424
425
clang-format)
@@ -599,8 +600,10 @@ endif()
599
600
# Configure make install/uninstall and packages
600
601
# --------------------------------------------------------------------------- #
601
602
install (FILES ${CMAKE_SOURCE_DIR} /LICENSE.TXT
602
- ${CMAKE_SOURCE_DIR} /third-party-programs.txt
603
603
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR} /doc/${PROJECT_NAME} /" )
604
+ install (
605
+ FILES ${CMAKE_SOURCE_DIR} /licensing/third-party-programs.txt
606
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR} /doc/${PROJECT_NAME} /licensing/" )
604
607
605
608
install (DIRECTORY examples DESTINATION "${CMAKE_INSTALL_DOCDIR} " )
606
609
0 commit comments