Merge branch 'master' of geras.asc.tuwien.ac.at:jschoeberl/netgen

This commit is contained in:
Joachim Schöberl 2019-09-03 07:12:05 +02:00
commit 194dd29d0b
2 changed files with 21 additions and 14 deletions

View File

@ -30,13 +30,17 @@ if(APPLE)
)
ExternalProject_Add(project_tkdnd
URL "https://sourceforge.net/projects/tkdnd/files/OS%20X%20Binaries/TkDND%202.8/tkdnd2.8-OSX-MountainLion.tar.gz"
URL_MD5 2dbb471b1d66c5f391f3c3c5b71548fb
URL "http://sourceforge.net/projects/tkdnd/files/TkDND/TkDND%202.8/tkdnd2.8-src.tar.gz"
URL_MD5 a6d47a996ea957416469b12965d4db91
DEPENDS project_tcl project_tk
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
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory . ${CMAKE_INSTALL_PREFIX}/../MacOS
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/Contents/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_CONFIGURE 1
LOG_BUILD 1

View File

@ -1,6 +1,8 @@
--- CMakeLists.txt 19:24:32.000000000 +0200
+++ CMakeLists.txt 2018-12-05 11:34:59.000000000 +0100
@@ -43,17 +43,18 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4eb497c..cd22a67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,17 +43,18 @@ IF ( WIN32 )
ELSE ( WIN32 )
## Unix and OS X...
IF ( APPLE )
@ -24,7 +26,7 @@
ADD_DEFINITIONS ( -fno-objc-arc )
# ADD_DEFINITIONS ( -fobjc-arc )
LINK_LIBRARIES ( ${COCOA_LIBRARY} )
@@ -125,8 +126,8 @@
@@ -125,8 +126,8 @@ SET ( CP ${CMAKE_COMMAND} -E copy )
## Locate Tcl/Tk
## ===========================================================================
MESSAGE ( STATUS "Searching for Tcl/Tk..." )
@ -35,7 +37,7 @@
## Tcl/Tk info (useful for debug purposes)...
# MESSAGE ( STATUS " TCL_TCLSH: " ${TCL_TCLSH} )
@@ -139,13 +140,13 @@
@@ -139,13 +140,14 @@ FIND_PACKAGE ( TclStub REQUIRED )
# MESSAGE ( STATUS " TK_LIBRARY: " ${TK_LIBRARY} )
## Enable Tcl/Tk stubs globally...
@ -48,8 +50,9 @@
INCLUDE_DIRECTORIES ( ${TK_INCLUDE_PATH} )
-LINK_LIBRARIES ( ${TCL_STUB_LIBRARY} )
-LINK_LIBRARIES ( ${TK_STUB_LIBRARY} )
+LINK_LIBRARIES ( ${TCL_LIBRARY} )
+LINK_LIBRARIES ( ${TK_LIBRARY} )
+#LINK_LIBRARIES ( ${TCL_LIBRARY} )
+#LINK_LIBRARIES ( ${TK_LIBRARY} )
+SET ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup" )
IF ( WIN32 AND NO_MSVCRT )
STRING ( REPLACE /MD /MT CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} )