mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
[cmake] Build TkDND instead of downloading the binary
This was changed accidentally in commit
9cbb51434b
[cmake] Build Tcl/Tk 8.6.9 on MacOS
This commit is contained in:
parent
71e8c6854c
commit
cf1a83edcd
@ -30,13 +30,17 @@ if(APPLE)
|
|||||||
)
|
)
|
||||||
|
|
||||||
ExternalProject_Add(project_tkdnd
|
ExternalProject_Add(project_tkdnd
|
||||||
URL "https://sourceforge.net/projects/tkdnd/files/OS%20X%20Binaries/TkDND%202.8/tkdnd2.8-OSX-MountainLion.tar.gz"
|
URL "http://sourceforge.net/projects/tkdnd/files/TkDND/TkDND%202.8/tkdnd2.8-src.tar.gz"
|
||||||
URL_MD5 2dbb471b1d66c5f391f3c3c5b71548fb
|
URL_MD5 a6d47a996ea957416469b12965d4db91
|
||||||
|
DEPENDS project_tcl project_tk
|
||||||
DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies
|
DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies
|
||||||
|
PATCH_COMMAND patch < ${CMAKE_CURRENT_LIST_DIR}/tkdnd_macosx.patch
|
||||||
|
UPDATE_COMMAND "" # Disable update
|
||||||
BUILD_IN_SOURCE 1
|
BUILD_IN_SOURCE 1
|
||||||
CONFIGURE_COMMAND ""
|
CMAKE_ARGS
|
||||||
BUILD_COMMAND ""
|
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/Contents/MacOS
|
||||||
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory . ${CMAKE_INSTALL_PREFIX}/../MacOS
|
-DTCL_INCLUDE_PATH=${CMAKE_INSTALL_PREFIX}/Contents/Frameworks/Tcl.framework/Headers
|
||||||
|
-DTK_INCLUDE_PATH=${CMAKE_INSTALL_PREFIX}/Contents/Frameworks/Tk.framework/Headers
|
||||||
LOG_DOWNLOAD 1
|
LOG_DOWNLOAD 1
|
||||||
LOG_CONFIGURE 1
|
LOG_CONFIGURE 1
|
||||||
LOG_BUILD 1
|
LOG_BUILD 1
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
--- CMakeLists.txt 19:24:32.000000000 +0200
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
+++ CMakeLists.txt 2018-12-05 11:34:59.000000000 +0100
|
index 4eb497c..cd22a67 100644
|
||||||
@@ -43,17 +43,18 @@
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -43,17 +43,18 @@ IF ( WIN32 )
|
||||||
ELSE ( WIN32 )
|
ELSE ( WIN32 )
|
||||||
## Unix and OS X...
|
## Unix and OS X...
|
||||||
IF ( APPLE )
|
IF ( APPLE )
|
||||||
@ -24,7 +26,7 @@
|
|||||||
ADD_DEFINITIONS ( -fno-objc-arc )
|
ADD_DEFINITIONS ( -fno-objc-arc )
|
||||||
# ADD_DEFINITIONS ( -fobjc-arc )
|
# ADD_DEFINITIONS ( -fobjc-arc )
|
||||||
LINK_LIBRARIES ( ${COCOA_LIBRARY} )
|
LINK_LIBRARIES ( ${COCOA_LIBRARY} )
|
||||||
@@ -125,8 +126,8 @@
|
@@ -125,8 +126,8 @@ SET ( CP ${CMAKE_COMMAND} -E copy )
|
||||||
## Locate Tcl/Tk
|
## Locate Tcl/Tk
|
||||||
## ===========================================================================
|
## ===========================================================================
|
||||||
MESSAGE ( STATUS "Searching for Tcl/Tk..." )
|
MESSAGE ( STATUS "Searching for Tcl/Tk..." )
|
||||||
@ -35,7 +37,7 @@
|
|||||||
|
|
||||||
## Tcl/Tk info (useful for debug purposes)...
|
## Tcl/Tk info (useful for debug purposes)...
|
||||||
# MESSAGE ( STATUS " TCL_TCLSH: " ${TCL_TCLSH} )
|
# MESSAGE ( STATUS " TCL_TCLSH: " ${TCL_TCLSH} )
|
||||||
@@ -139,13 +140,13 @@
|
@@ -139,13 +140,14 @@ FIND_PACKAGE ( TclStub REQUIRED )
|
||||||
# MESSAGE ( STATUS " TK_LIBRARY: " ${TK_LIBRARY} )
|
# MESSAGE ( STATUS " TK_LIBRARY: " ${TK_LIBRARY} )
|
||||||
|
|
||||||
## Enable Tcl/Tk stubs globally...
|
## Enable Tcl/Tk stubs globally...
|
||||||
@ -48,8 +50,9 @@
|
|||||||
INCLUDE_DIRECTORIES ( ${TK_INCLUDE_PATH} )
|
INCLUDE_DIRECTORIES ( ${TK_INCLUDE_PATH} )
|
||||||
-LINK_LIBRARIES ( ${TCL_STUB_LIBRARY} )
|
-LINK_LIBRARIES ( ${TCL_STUB_LIBRARY} )
|
||||||
-LINK_LIBRARIES ( ${TK_STUB_LIBRARY} )
|
-LINK_LIBRARIES ( ${TK_STUB_LIBRARY} )
|
||||||
+LINK_LIBRARIES ( ${TCL_LIBRARY} )
|
+#LINK_LIBRARIES ( ${TCL_LIBRARY} )
|
||||||
+LINK_LIBRARIES ( ${TK_LIBRARY} )
|
+#LINK_LIBRARIES ( ${TK_LIBRARY} )
|
||||||
|
+SET ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup" )
|
||||||
|
|
||||||
IF ( WIN32 AND NO_MSVCRT )
|
IF ( WIN32 AND NO_MSVCRT )
|
||||||
STRING ( REPLACE /MD /MT CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} )
|
STRING ( REPLACE /MD /MT CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} )
|
||||||
|
Loading…
Reference in New Issue
Block a user