You can test for platform flags.. if( win32 ) add_subdirectory( these_compile ) #... endif( win32 )
.... or add specific options that can be checked http://www.cmake.org/Wiki/CMake_Useful_Variables On Wed, Mar 3, 2010 at 12:27 AM, Smith Jack (Ext. - UGIS - UniCredit Group) <jack.smith.ext...@unicreditgroup.de> wrote: > > > >> -----Original Message----- >> From: cmake-boun...@cmake.org >> [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler >> Sent: Wednesday, March 03, 2010 9:21 AM >> To: cmake@cmake.org >> Subject: Re: [CMake] Supressing Make, but not Generators >> >> Zitat von "Smith Jack (Ext. - UGIS - UniCredit Group)" >> <jack.smith.ext...@unicreditgroup.de>: >> > >> > It's worryingly quiet on this subject. >> >> So, just exclude the target that won't build from ALL. >> > > > I'm afraid you've lost me there. Do I do this within a CMakeLists.txt file ? > > My current CMakeLists.txt relies upon ADD_SUBDIRECTORY(project_name) in order > to generate the build targets. > > How do I conditionally exclude project_name from ALL in this case ? > > Thanks, > Jack > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake