Richard Shaw <hobbes1069@...> writes:

> 
> On Thu, Jul 9, 2015 at 3:09 PM, Bob Bachman <bob_bachman-
[email protected]> wrote:
> It's defined in the CMakeLists.txt file and stored in the CMakeCache.txt
> file.
> //Path to a program.
> 
wxWidgets_CONFIG_EXECUTABLE:FILEPATH=/home/mzx_bldr/mozaix_svn/engineering/c
> ommon_src/src/wxWidgets-3.0.2/buildgtk/wx-config
> 
> Ok, useful information to have...
> 
> Only thing I can think of at this point is to start adding some debug 
tests such as after the above line try:
> 
> if(EXISTS ${ wxWidgetsCONFIG_EXECUTABLE})
>   message("Found wx-config")
> else()
>   message("wx-config not found")
> 
> Thanks,
> Richard
> 
> 

Hello Richard.

I'm wondering if you can explain what's happening below.
The first line is in our CMakeLists.txt file. It calls
"find_package" with the required libs.

1. find_package( wxWidgets REQUIRED base core xrc net adv xml html qa aui )

The second line is in the file FindwxWidgets.cmake and calls the
routine FindPackageHandleStandardArgs with three operands but no
libs (i.e base core ... etc).

2. FIND_PACKAGE_HANDLE_STANDARD_ARGS(wxWidgets DEFAULT_MSG wxWidgets_FOUND)

The final line is function definition and is in the file 
FindPackageHandleStandardArgs.cmake
and is where the process fails.

3. FUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG)

When I placed the line
message(STATUS ${_FIRST_ARG}) in this function and run it. I see  "DEFAULT_MSG".

It seems that line 2 should be calling a different version of this
routine, one that contains the list of lib names.

Any idea of what is going on here.

Thanks,
Bob


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to