Skip to content

Commit

Permalink
[win32] cmake: improve generated Visual Studio solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Mar 3, 2015
1 parent 09826ab commit 55ffd2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions project/cmake/addons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ set(BUILD_ARGS -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS})

if(MSVC)
# move cmake specific targets to a CMakePredefinedTargets folder in Visual Studio
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
endif()

if(PACKAGE_ZIP)
# needed for project installing
list(APPEND BUILD_ARGS -DPACKAGE_ZIP=1)
Expand Down

0 comments on commit 55ffd2e

Please sign in to comment.