Changeset 9b614da in tol


Ignore:
Timestamp:
Mar 19, 2015, 2:05:07 PM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
be3dec5
Parents:
4fce39e
Message:

refs #1812, refs #1818, al enlazar tolbase.exe en windows hay que dar la opcion -mwindows para que no abra una consola del DOS

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6511 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tolbase/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tolbase/generic/CMakeLists.txt

    r4fce39e r9b614da  
    66message( STATUS "Using TK_LIBRARY = ${TCL_LIBRARY}" )
    77
    8 if ( NOT WIN32 )
     8if ( WIN32 )
     9  set( CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -mwindows" )
     10else ( WIN32 )
    911        # use, i.e. don't skip the full RPATH for the build tree
    1012  SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
    … …  
    2022  SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
    2123
    22 
    2324  # the RPATH to be used when installing, but only if it's not a system directory
    2425  LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
    … …  
    2627     SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
    2728  ENDIF("${isSystemDir}" STREQUAL "-1")
    28 endif( NOT WIN32 )
     29endif( WIN32 )
    2930
    3031add_executable( tolbase tolbase.c )
  • tolbase/generic/tolbase.c

    r4fce39e r9b614da  
    1414#include "tk.h"
    1515#include "locale.h"
     16#include <windows.h>
     17
    1618
    1719#ifdef TK_TEST
    … …  
    3739 */
    3840
     41#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
     42
    3943int
    4044main(argc, argv)
    … …  
    5357#endif
    5458    extern int TK_LOCAL_APPINIT _ANSI_ARGS_((Tcl_Interp *interp));
     59
     60    //HWND hwnd = GetConsoleWindow();
     61    //ShowWindow(hwnd, 0);
    5562   
    5663    /*
Note: See TracChangeset for help on using the changeset viewer.