mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 11:47:52 +08:00
22 lines
739 B
Diff
22 lines
739 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index d6608b5..f545a00 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -29,14 +29,8 @@ if (NOT COMMSDSL_EXTERNALS_DIR)
|
|
set (COMMSDSL_EXTERNALS_DIR "${PROJECT_SOURCE_DIR}/externals")
|
|
endif ()
|
|
|
|
-if (COMMS_INSTALL_DIR)
|
|
- set (CC_CMAKE_DIR ${COMMS_INSTALL_DIR}/lib/LibComms/cmake)
|
|
-else ()
|
|
- set (CC_SRC_DIR "${COMMSDSL_EXTERNALS_DIR}/comms_champion")
|
|
- include (${CMAKE_SCIPTS_DIR}/CC_Prefetch.cmake)
|
|
- cc_prefetch(SRC_DIR ${CC_SRC_DIR} TAG ${CC_TAG})
|
|
- set (CC_CMAKE_DIR ${CC_SRC_DIR}/cmake)
|
|
-endif ()
|
|
+find_package(LibComms CONFIG REQUIRED)
|
|
+set(CC_CMAKE_DIR ${LibComms_DIR})
|
|
|
|
################################################
|
|
# Compiler options
|