-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support of Visual Studio #75
Conversation
I am testing it on linux in vscode with the integration, but gcc-13 complains about missing braces with the added
|
CMakeLists.txt
Outdated
if(STATIC) | ||
set( BUILD_SHARED_LIBRARIES OFF) | ||
set( BOOST_USE_STATIC_LIBS ON ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to set that again
set( BOOST_USE_STATIC_LIBS ON ) |
CMakeLists.txt
Outdated
@@ -30,7 +35,8 @@ if (OPENMP_FOUND) | |||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") | |||
endif() | |||
endif() | |||
find_package(Boost EXACT COMPONENTS system thread filesystem regex timer REQUIRED) | |||
find_package(Boost COMPONENTS system thread filesystem regex timer REQUIRED) | |||
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} ) | |
include_directories( ${Boost_INCLUDE_DIR} ) |
Minor change, but I'd keep all the cmake functions lowercase.
@@ -2530,6 +2536,8 @@ DeckResults run(int argc, const char **argv) | |||
|
|||
for (int argIndex = 3; argIndex < argc; ++argIndex) | |||
{ | |||
//bypass MSVS issue: Nesting of code blocks exceeds the limit of 128 nesting levels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, that is a weird error from msvc...
LGTM, thanks! |
No description provided.