Skip to content

Commit

Permalink
fix cmake build failure when packages are not found
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykorir committed May 22, 2024
1 parent 0947d7f commit 8143b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5)
project(wxMinesweeper LANGUAGES CXX)
find_package(wxWidgets REQUIRED)
if(NOT wxWidgets_FOUND)
#if(NOT wxWidgets_FOUND)
find_package(libwxgtk2.8-dev)
find_package(libwxgtk2.8-dbg)
include(ExternalProject)
Expand All @@ -11,7 +11,7 @@ if(NOT wxWidgets_FOUND)
GIT_TAG v3.2.4
STEP_TARGETS build
)
endif()
#endif()
include(${wxWidgets_USE_FILE})
add_executable(wxMinesweeper field.cpp field.h minesweeper.cpp minesweeper.h)
target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})

0 comments on commit 8143b63

Please sign in to comment.