diff --git a/CMakeLists.txt b/CMakeLists.txt index 928b8c8..286a7e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,17 +40,17 @@ SET(TEST_FILES ${TEST_FILES} ADD_LIBRARY(lib-snowflakeid-obj OBJECT ${SOURCE_FILES}) ADD_LIBRARY(lib-snowflakeid-static STATIC $) ADD_LIBRARY(lib-snowflakeid-shared SHARED $) -IF (!WIN32) +IF (NOT MSVC) SET_TARGET_PROPERTIES(lib-snowflakeid-static PROPERTIES OUTPUT_NAME "snowflakeid") -ENDIF (!WIN32) +ENDIF (NOT MSVC) SET_TARGET_PROPERTIES(lib-snowflakeid-shared PROPERTIES OUTPUT_NAME "snowflakeid") # Binary (Unit Tests) ADD_EXECUTABLE(lib-snowflakeid-test $ ${TEST_FILES}) # Install -IF (!WIN32) +IF (NOT MSVC) INSTALL(TARGETS lib-snowflakeid-static ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin) -ENDIF (!WIN32) +ENDIF (NOT MSVC) INSTALL(TARGETS lib-snowflakeid-shared ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/ DESTINATION include FILES_MATCHING PATTERN "*.h*") diff --git a/test/test_main.c b/test/test_main.c index a04d643..fd02b54 100644 --- a/test/test_main.c +++ b/test/test_main.c @@ -52,7 +52,7 @@ int main(const int argc, const char *const *argv) { } uint64_t time_stop = get_current_time_ms(); - printf("END PERFORMANCE TEST : %" PRIu64 "ms\n", time_stop - time_start); + printf("END PERFORMANCE TEST : %" PRIu64 "ms\n", time_stop - time_start); free(id_array); } else if (argc > 1 && strcmp(argv[1], "SINGLE") == 0) {