CMake: Update documentation of wxWidgets_USE_FILE
This is not defined in CONFIG mode, so check its availability before using.
This commit is contained in:
parent
1051dfd141
commit
ea56496e0a
1 changed files with 3 additions and 1 deletions
|
|
@ -114,7 +114,9 @@ Your *CMakeLists.txt* would look like this:
|
|||
...
|
||||
|
||||
find_package(wxWidgets REQUIRED COMPONENTS net core base)
|
||||
include(${wxWidgets_USE_FILE})
|
||||
if(wxWidgets_USE_FILE) # not defined in CONFIG mode
|
||||
include(${wxWidgets_USE_FILE})
|
||||
endif()
|
||||
add_executable(myapp myapp.cpp)
|
||||
target_link_libraries(myapp ${wxWidgets_LIBRARIES})
|
||||
~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue