From 6c87791b959aa8b81a3bb0913e182234da51117f Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Tue, 14 Apr 2020 14:32:01 -0400 Subject: [PATCH] build: reduce warnings from Phoenix cmake module --- cmake/modules/FindPhoenix.cmake | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cmake/modules/FindPhoenix.cmake b/cmake/modules/FindPhoenix.cmake index 1ceeba9..46ffa7b 100644 --- a/cmake/modules/FindPhoenix.cmake +++ b/cmake/modules/FindPhoenix.cmake @@ -9,8 +9,8 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (NOT PHOENIX_DIR) - message(WARNING "PHOENIX: WARNING: PHOENIX_DIR not set, set to dir SDKX.XX where X.XX is the version") -endif (NOT PHOENIX_DIR) + set (PHOENIX_DIR "C:/Program Files (x86)/Active Silicon/Phoenix/Win/SDK6.30" CACHE PATH "Directory containing Phoenix SDK includes and libraries") +endif () find_path(PHOENIX_INCLUDE_DIR phx_api.h PATHS @@ -29,9 +29,5 @@ else () DOC "PHOENIX library to link with") endif() -if (NOT PHOENIX_INCLUDE_DIR) - message(WARNING "PHOENIX: WARNING: not found, make sure PHOENIX_DIR is set to dir SDKX.XX") -endif () - include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(PHOENIX DEFAULT_MSG PHOENIX_INCLUDE_DIR PHOENIX_LIBRARIES) \ No newline at end of file +find_package_handle_standard_args(PHOENIX DEFAULT_MSG PHOENIX_INCLUDE_DIR PHOENIX_LIBRARIES)