2020-11-13 05:27:47 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index e2b69fe..aff5917 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -66,6 +66,7 @@ endif ()
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Use external CommsChampion project or compile it in place
|
|
|
|
+if(FALSE)
|
|
|
|
set (CC_EXTERNAL_TGT "comms_champion_external")
|
|
|
|
if (OPT_BUILD_TEST OR OPT_BUILD_PLUGIN)
|
|
|
|
set (external_cc_needed TRUE)
|
|
|
|
@@ -107,6 +108,10 @@ elseif (external_cc_needed)
|
|
|
|
find_package(CommsChampion NO_MODULE)
|
|
|
|
set (cc_compile_file "${OPT_CC_MAIN_INSTALL_DIR}/lib/LibComms/cmake/CC_Compile.cmake")
|
|
|
|
endif ()
|
|
|
|
+else()
|
|
|
|
+ find_package(LibComms CONFIG REQUIRED)
|
2021-08-31 09:25:10 +08:00
|
|
|
+ set(cc_compile_file "${LibComms_DIR}/CC_Compile.cmake")
|
2020-11-13 05:27:47 +08:00
|
|
|
+endif()
|
|
|
|
|
|
|
|
if (EXISTS ${cc_compile_file})
|
|
|
|
# Set compiler flags
|