Skip to content

Commit

Permalink
Fix build issues on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasmeszaros committed Jan 16, 2020
1 parent fada722 commit a1dc7a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ endif()
find_package(OpenVDB 5.0 REQUIRED COMPONENTS openvdb)
if(OpenVDB_FOUND)
slic3r_remap_configs(IlmBase::Half RelWithDebInfo Release)
slic3r_remap_configs(Blosc::blosc RelWithDebInfo Release)
endif()

set(TOP_LEVEL_PROJECT_DIR ${PROJECT_SOURCE_DIR})
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/FindOpenVDB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})

set(OpenVDB_${COMPONENT}_LIBRARY ${OpenVDB_${COMPONENT}_LIBRARY_${_BUILD_TYPE}})

if (NOT MSVC AND NOT OpenVDB_${COMPONENT}_LIBRARY)
if (NOT OpenVDB_${COMPONENT}_LIBRARY)
set(OpenVDB_${COMPONENT}_LIBRARY ${OpenVDB_${COMPONENT}_LIBRARY_RELEASE})
endif ()

Expand Down
2 changes: 1 addition & 1 deletion sandboxes/meshboolean/MeshBoolean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int main(const int argc, const char * argv[])
{
using namespace Slic3r;

if (argc < 1) return EXIT_FAILURE;
if (argc <= 1) return EXIT_FAILURE;

DynamicPrintConfig cfg;
auto model = Model::read_from_file(argv[1], &cfg);
Expand Down
1 change: 1 addition & 0 deletions sandboxes/opencsg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ target_link_libraries(opencsg_example libslic3r)
target_include_directories(opencsg_example PRIVATE ${wxWidgets_INCLUDE_DIRS})
target_compile_definitions(opencsg_example PRIVATE ${wxWidgets_DEFINITIONS})

slic3r_remap_configs(OpenCSG::opencsg RelWithDebInfo Release)
target_link_libraries(opencsg_example ${wxWidgets_LIBRARIES}
OpenCSG::opencsg
GLEW::GLEW
Expand Down

0 comments on commit a1dc7a5

Please sign in to comment.