forked from macports/macports-ports
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openbabel2: fix C++ standard, fix opportunistic usage of wxWidgets
- Loading branch information
1 parent
0e36bca
commit 5aedc32
Showing
2 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- CMakeLists.txt 2016-10-10 23:56:17.000000000 +0800 | ||
+++ CMakeLists.txt 2024-12-08 00:28:25.000000000 +0800 | ||
@@ -178,15 +178,6 @@ | ||
endif() | ||
endif() | ||
|
||
-# wxWidgets instructions based on http://wiki.wxwidgets.org/CMake | ||
-#find_package(wxWidgets COMPONENTS base core REQUIRED) | ||
-find_package(wxWidgets COMPONENTS base core adv) | ||
-if(wxWidgets_FOUND) | ||
- include(${wxWidgets_USE_FILE}) | ||
- add_definitions(-DHAVE_WXWIDGETS) | ||
- include_directories(${wxWidgets_INCLUDE_DIRS}) | ||
-endif() | ||
- | ||
if(MSVC) | ||
# Ensure that CharacterSet="0" in the project files | ||
add_definitions(-D_SBCS) # Single-Byte Character Set (requires CMake 2.8.8) | ||
@@ -494,6 +485,13 @@ | ||
|
||
if(BUILD_GUI) | ||
message(STATUS "Attempting to build the GUI") | ||
+ # wxWidgets instructions based on http://wiki.wxwidgets.org/CMake | ||
+ find_package(wxWidgets COMPONENTS base core adv) | ||
+ if(wxWidgets_FOUND) | ||
+ include(${wxWidgets_USE_FILE}) | ||
+ add_definitions(-DHAVE_WXWIDGETS) | ||
+ include_directories(${wxWidgets_INCLUDE_DIRS}) | ||
+ endif() | ||
if(wxWidgets_FOUND) | ||
message(STATUS " wxWidgets found => GUI will be built") | ||
add_subdirectory(src/GUI) |