diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b6b6c8be..bd5c7266a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,8 +145,10 @@ include_directories(${CMAKE_SOURCE_DIR}/include) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) # Generate pkg-config -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/freerdp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp.pc @ONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freerdp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +if(NOT MSVC) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/freerdp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp.pc @ONLY) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freerdp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +endif() # Build CUnit find_optional_package(CUnit) @@ -182,7 +184,9 @@ if(WITH_SERVER) add_subdirectory(server) endif() -add_subdirectory(keymaps) +if(NOT MSVC) + add_subdirectory(keymaps) +endif() # Source package set(CPACK_SOURCE_IGNORE_FILES "/\\\\.git/;/\\\\.gitignore;/CMakeCache.txt")