V
V
Vitaly Stolyarov2017-03-15 01:25:14
CMake
Vitaly Stolyarov, 2017-03-15 01:25:14

Can't find wxWidgets with wxWidgets_ROOT_DIR explicitly specified?

wxWidgets is built via mingw and has install prefix = /usr/i686-mingw for example
In CMakeLists.txt I'm trying to find in a simple way:

find_package(wxWidgets COMPONENTS core base gl net REQUIRED)

before that
I set set(CMAKE_PREFIX_PATH /usr/i686-mingw)
set(wxWidgets_ROOT_DIR /opt/wxWidgets-3.1.0/build_windows_x32)
and it doesn't change anything, still find_package can't find library components

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Stolyarov, 2017-03-15
@Ni55aN

The reason was this:
Cmake 3.0 was significantly older than wxWidgets 3.1, around 2014 vs 2016 respectively.
Installed cmake 3.7 and one line
is enough

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question