title: VS10 always links to SUBSYSTEM:WINDOWS; CMake+SDL+GLEW
body: <p>I'm just trying to set up a simple project that shall be able to compile on every platform, that is supported by CMake. I started my project on a Win7-system and wrote a little main.cpp that includes SDL.h and GL/glew.h. The style of the main-function is simple c++: </p>
  
  <pre><code>int main(int, char**) {}
  </code></pre>
  
  <p>In my CMakeLists.txt I call find_package(SDL) and find_package(GLEW). The CMake-part works well, so I just opened the vs10-solution-file and tried to compile when I get the LNK2019:</p>
  
  <blockquote>
    <p>error LNK2019: unresolved external symbol <em>main referenced in function _</em>_tmainCRTStartup</p>
  </blockquote>
  
  <p>This would mean that I chose the wrong subsystem, doesn't it? But if I simply toggle the subsystem from CONSOLE to WINDOWS and back the problem still exists. Has CMake set a hidden option for that? How can I compile my simple program in vs10?</p>